* TreeView.cs: Remove some TODOS.
authorJackson Harper <jackson@novell.com>
Mon, 13 Jun 2005 15:02:01 +0000 (15:02 -0000)
committerJackson Harper <jackson@novell.com>
Mon, 13 Jun 2005 15:02:01 +0000 (15:02 -0000)
svn path=/trunk/mcs/; revision=45878

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TreeView.cs

index 2f4db2f2c67bd9852e431f0162448f2fcc9ab941..834a33f9133d47dc3ea89ed401262faeb35a72e4 100644 (file)
@@ -1,3 +1,7 @@
+2005-06-13  Jackson Harper  <jackson@ximian.com>
+
+       * TreeView.cs: Remove some TODOS.
+
 2005-06-13  Jackson Harper  <jackson@ximian.com>
 
        * Form.cs: Hook into the mdi framework.
index 48c5703dd1b7db40393027f4c595533025056eb0..c4e5e1a877524df6e8302db5c225981b122ae9fa 100644 (file)
@@ -204,15 +204,20 @@ namespace System.Windows.Forms {
                                        throw new ArgumentException ("'" + value + "' is not a valid value for 'value'. " +
                                                "'value' must be greater than or equal to 0.");
                                }
+                               if (image_index == value)
+                                       return;
                                image_index = value;
+                               Refresh ();
                        }
                }
 
-               [MonoTODO ("Anything special need to be done here?")]
                [DefaultValue(null)]
                public ImageList ImageList {
                        get { return image_list; }
-                       set { image_list = value; }
+                       set {
+                               image_list = value;
+                               Refresh ();
+                       }
                }
 
                [Localizable(true)]
@@ -394,7 +399,6 @@ namespace System.Windows.Forms {
                #endregion      // Public Instance Properties
 
                #region Protected Instance Properties
-               [MonoTODO ("Anything extra needed here?")]
                protected override CreateParams CreateParams {
                        get {
                                CreateParams cp = base.CreateParams;
@@ -474,7 +478,6 @@ namespace System.Windows.Forms {
                        base.Dispose (disposing);
                }
 
-               [MonoTODO ("What does the state effect?")]
                protected OwnerDrawPropertyBag GetItemRenderStyles (TreeNode node, int state) {
                        return node.prop_bag;
                }