2004-04-24 Todd Berman <tberman@sevenl.net>
authorTodd Berman <tberman@mono-cvs.ximian.com>
Sat, 24 Apr 2004 08:19:23 +0000 (08:19 -0000)
committerTodd Berman <tberman@mono-cvs.ximian.com>
Sat, 24 Apr 2004 08:19:23 +0000 (08:19 -0000)
        * System.Windows.Forms/ContextMenu.cs:
        * System.Windows.Forms/Menu.cs: Whitespace fixes.
        * System.Windows.Forms/MenuItem.cs: fix the check for a null parent.

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

mcs/class/System.Windows.Forms/ChangeLog
mcs/class/System.Windows.Forms/System.Windows.Forms/ContextMenu.cs
mcs/class/System.Windows.Forms/System.Windows.Forms/Menu.cs
mcs/class/System.Windows.Forms/System.Windows.Forms/MenuItem.cs

index 15f3e98f48f80a7b20227ca9806a1170f56cc2e9..5ce5ec0f9fe843515c516d5ec3db588b356cd773 100644 (file)
@@ -1,3 +1,9 @@
+2004-04-24  Todd Berman  <tberman@sevenl.net>
+
+       * System.Windows.Forms/ContextMenu.cs:
+       * System.Windows.Forms/Menu.cs: Whitespace fixes.
+       * System.Windows.Forms/MenuItem.cs: fix the check for a null parent.
+
 2004-03-15  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
 
        * System.Windows.Forms.dll.sources: Added files
index 1721969351648d627f053995a7124009fc674ed4..ebe569756578e2b8a70054894ff0d7ce18ee8367 100644 (file)
@@ -59,7 +59,7 @@ namespace System.Windows.Forms {
                {
                        if ( Handle == IntPtr.Zero )
                                return;
-
+                       
                        sourceControl = control;
 
                        POINT pt = new POINT ();
index 02f43d65e41c33a180623d081f31c2ba2661441b..b84cc5663327b100a592e0e5e0b6053f92fc8b20 100644 (file)
@@ -133,7 +133,7 @@ namespace System.Windows.Forms  {
                        }
                }
                
-        internal Menu parent_ = null;
+               internal Menu parent_ = null;
         
                internal IntPtr menuHandle_ = IntPtr.Zero;
                internal bool   isPopupMenu = false;
index 31d9bbb5a7324e0dcc95dbeeff3c19651e0d4867..39739264764964c951f6a318ab2f54bd908577e3 100644 (file)
@@ -339,12 +339,11 @@ namespace System.Windows.Forms {
                        }
                }
 
-        internal void SetParent( Menu parent) {
-               // FIXME: set exception parameters
-               if( parent != null && parent_ != null)
-                       throw new System.Exception();
-               parent_ = parent;
-        }
+               internal void SetParent( Menu parent) {
+                       if( parent == null)
+                               throw new System.ArgumentNullException ("parent");
+                       parent_ = parent;
+               }
         
                public Menu Parent {