diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2009-04-09 00:34:06 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2009-04-09 00:34:06 +0400 |
commit | 32b39b3caa341cc6772dc47f0c6a2442a8455e26 (patch) | |
tree | 06e42ebefa92a7918a3c532ae7675c71e99b4eb9 | |
parent | 5b4e0b6997efb1b8ebff3ede10056c02d0fb1bd6 (diff) |
2009-04-08 Gonzalo Paniagua Javier <gonzalo@novell.com>
* Comparison.cs: added a Reset() so we're able to recalculate the
counts after modifying the tree.
svn path=/trunk/mono-tools/; revision=131359
-rw-r--r-- | gui-compare/ChangeLog | 5 | ||||
-rw-r--r-- | gui-compare/Comparison.cs | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gui-compare/ChangeLog b/gui-compare/ChangeLog index 04ed37c7..1afdf3d4 100644 --- a/gui-compare/ChangeLog +++ b/gui-compare/ChangeLog @@ -1,3 +1,8 @@ +2009-04-08 Gonzalo Paniagua Javier <gonzalo@novell.com> + + * Comparison.cs: added a Reset() so we're able to recalculate the + counts after modifying the tree. + 2009-04-07 Rolf Bjarne Kvinge <RKvinge@novell.com> * InfoManager.cs: Look up the Moonlight assemblies in the diff --git a/gui-compare/Comparison.cs b/gui-compare/Comparison.cs index 04986ba9..246430f9 100644 --- a/gui-compare/Comparison.cs +++ b/gui-compare/Comparison.cs @@ -73,6 +73,19 @@ namespace GuiCompare { } } + public void ResetCounts () + { + foreach (ComparisonNode n in Children) + n.ResetCounts (); + + Todo = 0; + Niex = 0; + Extra = 0; + Missing = 0; + Present = 0; + Warning = 0; + } + public void AddError (string msg) { Status = ComparisonStatus.Error; |