Author: mkestner
Date: 2006-11-09 15:40:50 -0500 (Thu, 09 Nov 2006)
New Revision: 67641

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
   
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ListViewEventTest.cs
Log:

2006-11-09  Mike Kestner  <[EMAIL PROTECTED]>

        * ListView.cs : raise SelectedIndexChanged once per selected item
        for compat with MS.  Fixes #79849+.


Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-09 20:38:37 UTC (rev 67640)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-09 20:40:50 UTC (rev 67641)
@@ -1,3 +1,8 @@
+2006-11-09  Mike Kestner  <[EMAIL PROTECTED]>
+
+       * ListView.cs : raise SelectedIndexChanged once per selected item
+       for compat with MS.  Fixes #79849+.
+
 2006-11-09  Chris Toshok  <[EMAIL PROTECTED]>
 
        * TabControl.cs: initialize row_count to 0, and set it to 1 when

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2006-11-09 20:38:37 UTC (rev 67640)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs      
2006-11-09 20:40:50 UTC (rev 67641)
@@ -1941,7 +1941,7 @@
                protected override void CreateHandle ()
                {
                        base.CreateHandle ();
-                       if (SelectedItems.Count > 0)
+                       for (int i = 0; i < SelectedItems.Count; i++)
                                OnSelectedIndexChanged (EventArgs.Empty);
                }
 

Modified: 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ListViewEventTest.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ListViewEventTest.cs
        2006-11-09 20:38:37 UTC (rev 67640)
+++ 
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ListViewEventTest.cs
        2006-11-09 20:40:50 UTC (rev 67641)
@@ -222,7 +222,7 @@
        }
 
        [TestFixture]
-       public class SelectedIndexChangedEvent
+       public class ListViewSelectedIndexChangedEvent
        {
                int selectedIndexChanged;
 
@@ -238,7 +238,6 @@
                }
 
                [Test] // bug #79849
-               [Category ("NotWorking")]
                public void SelectBeforeCreationOfHandle ()
                {
                        Form form = new Form ();

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

Reply via email to