2007-02-27 Igor Zelmanovich <igorz@mainsoft.com>
authorIgor Zelmanovich <igorz@mono-cvs.ximian.com>
Tue, 27 Feb 2007 16:05:04 +0000 (16:05 -0000)
committerIgor Zelmanovich <igorz@mono-cvs.ximian.com>
Tue, 27 Feb 2007 16:05:04 +0000 (16:05 -0000)
* TreeNodeCollection.cs: 'dirty' flag is assigned if 'marked' only

svn path=/trunk/mcs/; revision=73478

mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
mcs/class/System.Web/System.Web.UI.WebControls/TreeNodeCollection.cs

index a317f47c5ccfe21b70d30c772aeccbfbba06d296..f6959f6bd195ff6bd46ffe5a7aa497e85da0d8c1 100644 (file)
@@ -1,3 +1,7 @@
+2007-02-27 Igor Zelmanovich <igorz@mainsoft.com>
+
+       * TreeNodeCollection.cs: 'dirty' flag is assigned if 'marked' only 
+
 2007-02-27 Igor Zelmanovich <igorz@mainsoft.com>
 
        * BaseDataBoundControl.cs: setting DataSource to null does not 
index 220e34b75aec848b738c5f72d0c3b0b0616aac2d..7d9571528f2abfefbfc4ea2e689385bbd5a7c82e 100644 (file)
@@ -122,7 +122,9 @@ namespace System.Web.UI.WebControls
                                }
                        }
                        items.Clear ();
-                       dirty = true;
+                       if (marked) {
+                               dirty = true;
+                       }
                }
                
                public bool Contains (TreeNode child)
@@ -152,7 +154,9 @@ namespace System.Web.UI.WebControls
                        items.RemoveAt (i);
                        if (tree != null)
                                node.Tree = null;
-                       dirty = true;
+                       if (marked) {
+                               dirty = true;
+                       }
                }
                
                public void RemoveAt (int index)
@@ -161,7 +165,9 @@ namespace System.Web.UI.WebControls
                        items.RemoveAt (index);
                        if (tree != null)
                                node.Tree = null;
-                       dirty = true;
+                       if (marked) {
+                               dirty = true;
+                       }
                }
                
                public int Count {