2008-12-06 Ivan N. Zlatev <contact@i-nz.net>
authorIvan Zlatev <ivan@ivanz.com>
Sat, 6 Dec 2008 01:44:22 +0000 (01:44 -0000)
committerIvan Zlatev <ivan@ivanz.com>
Sat, 6 Dec 2008 01:44:22 +0000 (01:44 -0000)
* BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
* BindingSourceTest.cs: ListChanged_DataSourceSet passes now.

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

mcs/class/Managed.Windows.Forms/System.Windows.Forms/BindingSource.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/BindingSourceTest.cs
mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog

index 83a55ceba9470beaa3552f87072467e43af82f15..c0c80e03b381f9000c15958f777dc6d7f4b855fb 100644 (file)
@@ -190,9 +190,8 @@ namespace System.Windows.Forms {
                                if (list is IBindingListView)
                                        ((IBindingListView)list).Filter = filter;
                        }
-
-                       if (raise_list_changed_events)
-                               OnListChanged (new ListChangedEventArgs (ListChangedType.Reset, -1));
+                       
+                       ResetBindings (true);
                }
 
                void IBindingListChangedHandler (object o, ListChangedEventArgs args)
index f61505293e14f9897a77044d4bf1cf07b6ec3061..7b32505cb6f0127d3987f4d541ed55d466712f2c 100644 (file)
@@ -1,3 +1,7 @@
+2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * BindingSource.cs: Reset the bindings. Fixes a NotWorking test.
+
 2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
 
        * XplatUIX11.cs: Send WM_HELP only to the focused window.
index 4d80c18a4532de95e0bb657e270579f8416aaf29..e7a3bc685801d94d26549efdac81b05d34ca5a3c 100644 (file)
@@ -1802,7 +1802,6 @@ namespace MonoTests.System.Windows.Forms.DataBinding {
                }
 
                [Test]
-               [Category ("NotWorking")]
                public void ListChanged_DataSourceSet ()
                {
                        IBindingList bindinglist = new BindingList<string> ();
index ae02b2be8f50c6764dfa9f25618dfdf326d74ab7..748694cb6bb338d077c6fc28e4151f4d5aff0c1b 100644 (file)
@@ -1,3 +1,7 @@
+2008-12-06  Ivan N. Zlatev  <contact@i-nz.net>
+
+       * BindingSourceTest.cs: ListChanged_DataSourceSet passes now.
+
 2008-12-02  Jonathan Pobst  <monkey@jpobst.com>
 
        * PaintEventArgsTest.cs: Tests were failing due to being dependent