Author: miguel
Date: 2006-11-28 19:34:09 -0500 (Tue, 28 Nov 2006)
New Revision: 68631

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnClickEventHandler.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabPage.cs
Log:
2006-11-28  Miguel de Icaza  <[EMAIL PROTECTED]>

        * Form.cs: Add another popular method.

        * TabPage.cs: ditto.



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-29 00:10:46 UTC (rev 68630)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2006-11-29 00:34:09 UTC (rev 68631)
@@ -1,3 +1,9 @@
+2006-11-28  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * Form.cs: Add another popular method.
+
+       * TabPage.cs: ditto.
+
 2006-11-28  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
 
        * MenuItem.cs: Fixed a warning.

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnClickEventHandler.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnClickEventHandler.cs
       2006-11-29 00:10:46 UTC (rev 68630)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ColumnClickEventHandler.cs
       2006-11-29 00:34:09 UTC (rev 68631)
@@ -23,10 +23,6 @@
 //     Ravindra ([EMAIL PROTECTED])
 //
 
-
-// COMPLETE
-
-
 namespace System.Windows.Forms
 {
 #if !NET_2_0

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2006-11-29 00:10:46 UTC (rev 68630)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs  
2006-11-29 00:34:09 UTC (rev 68631)
@@ -1182,6 +1182,12 @@
                        if (!is_visible)
                                return;
 
+#if NET_2_0
+                       FormClosingEventArgs ce = new FormClosingEventArgs 
(CloseReason.FormOwnerClosing, true);
+                       OnFormClosing (ce);
+                       if (ce.Cancel)
+                               return;
+#endif
                        XplatUI.SendMessage(this.Handle, Msg.WM_CLOSE, 
IntPtr.Zero, IntPtr.Zero);
                }
 
@@ -2125,6 +2131,24 @@
                        }
                }
 
+               public new Point Location {
+                       get {
+                               return base.Location;
+                       }
+
+                       set {
+                               base.Location = value;
+                       }
+               }
+
+               public event FormClosingEventHandler FormClosing;
+               public event FormClosedEventHandler FormClosed;
+               
+               protected virtual void OnFormClosing (FormClosingEventArgs e)
+               {
+                       if (FormClosing != null)
+                               FormClosing (this, e);
+               }
 #endif
        }
 }

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabPage.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabPage.cs       
2006-11-29 00:10:46 UTC (rev 68630)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabPage.cs       
2006-11-29 00:34:09 UTC (rev 68631)
@@ -267,6 +267,17 @@
 
                #endregion      // Events
 
+#if NET_2_0
+               public new Point Location {
+                       get {
+                               return base.Location;
+                       }
+
+                       set {
+                               base.Location = value;
+                       }
+               }
+#endif
                #region Class TabPageControlCollection
                public class TabPageControlCollection : ControlCollection {
 
@@ -283,6 +294,7 @@
                        }
                }
                #endregion      // Class TabPageControlCollection
+
        }
 
        

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

Reply via email to