* TreeNodeCollection.cs: 'dirty' flag is assigned if 'marked' only
svn path=/trunk/mcs/; revision=73478
+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
}
}
items.Clear ();
- dirty = true;
+ if (marked) {
+ dirty = true;
+ }
}
public bool Contains (TreeNode child)
items.RemoveAt (i);
if (tree != null)
node.Tree = null;
- dirty = true;
+ if (marked) {
+ dirty = true;
+ }
}
public void RemoveAt (int index)
items.RemoveAt (index);
if (tree != null)
node.Tree = null;
- dirty = true;
+ if (marked) {
+ dirty = true;
+ }
}
public int Count {