Author: calberto
Date: 2007-06-01 01:33:30 -0400 (Fri, 01 Jun 2007)
New Revision: 78398

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:
        * ListView.cs: Implement 2.0 RedrawItems method.

2007-05-31  Carlos Alberto Cortez <[EMAIL PROTECTED]>



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-06-01 05:27:37 UTC (rev 78397)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-06-01 05:33:30 UTC (rev 78398)
@@ -1,5 +1,9 @@
 2007-05-31  Carlos Alberto Cortez <[EMAIL PROTECTED]>
 
+       * ListView.cs: Implement 2.0 RedrawItems method.
+
+2007-05-31  Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
        * ListControl.cs: Disconnect PositionChanged and ItemChanged
        handlers from previous data manager when DataSource is set to
        null. Fixes #81771.

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2007-06-01 05:27:37 UTC (rev 78397)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2007-06-01 05:33:30 UTC (rev 78398)
@@ -3025,6 +3025,27 @@
                        return items [index].GetBounds (portion);
                }
 
+#if NET_2_0
+               public void RedrawItems (int startIndex, int endIndex, bool 
invalidateOnly)
+               {
+                       if (startIndex < 0 || startIndex >= items.Count)
+                               throw new ArgumentOutOfRangeException 
("startIndex");
+                       if (endIndex < 0 || endIndex >= items.Count)
+                               throw new ArgumentOutOfRangeException 
("endIndex");
+                       if (startIndex > endIndex)
+                               throw new ArgumentException ("startIndex");
+
+                       if (updating)
+                               return;
+
+                       for (int i = startIndex; i <= endIndex; i++)
+                               item_control.Invalidate (items [i].Bounds);
+
+                       if (!invalidateOnly)
+                               Update ();
+               }
+#endif
+
                public void Sort ()
                {
 #if NET_2_0

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to