Author: calberto
Date: 2008-02-09 21:59:06 -0500 (Sat, 09 Feb 2008)
New Revision: 95355
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
Log:
* Binding.cs: Ooooops, forgot to take into account the data_source
and binding_member_info null case (it was breaking the Binding tests).
2008-02-09 Carlos Alberto Cortez <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
2008-02-10 02:47:29 UTC (rev 95354)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
2008-02-10 02:59:06 UTC (rev 95355)
@@ -401,6 +401,9 @@
void ConnectPropertyChangedEvent ()
{
+ if (data_source == null || binding_member_info == null
|| binding_member_info.BindingField.Length == 0)
+ return;
+
string event_name = binding_member_info.BindingField +
"Changed";
Type event_handler_type = typeof (EventHandler);
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-10 02:47:29 UTC (rev 95354)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2008-02-10 02:59:06 UTC (rev 95355)
@@ -1,5 +1,10 @@
2008-02-09 Carlos Alberto Cortez <[EMAIL PROTECTED]>
+ * Binding.cs: Ooooops, forgot to take into account the data_source
+ and binding_member_info null case (it was breaking the Binding tests).
+
+2008-02-09 Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
* Binding.cs: Implement support for data source changes exposed by
'PropertyNameChanged' events, and update the control property as
needed.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches