Author: calberto
Date: 2008-02-08 17:48:53 -0500 (Fri, 08 Feb 2008)
New Revision: 95308

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
Log:
2008-02-08  Carlos Alberto Cortez <[EMAIL PROTECTED]>

        * Binding.cs: Implement 2.0 WriteValue method.



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-08 22:07:53 UTC (rev 95307)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs       
2008-02-08 22:48:53 UTC (rev 95308)
@@ -195,6 +195,11 @@
                {
                        PushData (true);
                }
+
+               public void WriteValue ()
+               {
+                       PullData (true);
+               }
 #endif
 
                #region Protected Instance Methods
@@ -265,8 +270,17 @@
 
                internal void PullData ()
                {
+                       PullData (false);
+               }
+
+               void PullData (bool force)
+               {
                        if (IsBinding == false || manager.Current == null)
                                return;
+#if NET_2_0
+                       if (!force && datasource_update_mode == 
DataSourceUpdateMode.Never)
+                               return;
+#endif
 
                        data = control_property.GetValue (control);
 

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-02-08 22:07:53 UTC (rev 95307)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2008-02-08 22:48:53 UTC (rev 95308)
@@ -1,3 +1,7 @@
+2008-02-08  Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+       * Binding.cs: Implement 2.0 WriteValue method.
+
 2008-02-08  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        Commit patch from James Purcell for better AutoScale implementation:

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

Reply via email to