From 32b39b3caa341cc6772dc47f0c6a2442a8455e26 Mon Sep 17 00:00:00 2001 From: Gonzalo Paniagua Javier Date: Wed, 8 Apr 2009 20:34:06 +0000 Subject: 2009-04-08 Gonzalo Paniagua Javier * Comparison.cs: added a Reset() so we're able to recalculate the counts after modifying the tree. svn path=/trunk/mono-tools/; revision=131359 --- gui-compare/ChangeLog | 5 +++++ gui-compare/Comparison.cs | 13 +++++++++++++ 2 files changed, 18 insertions(+) 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 + + * Comparison.cs: added a Reset() so we're able to recalculate the + counts after modifying the tree. + 2009-04-07 Rolf Bjarne Kvinge * 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; -- cgit v1.2.3