* 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
+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
{
if ( Handle == IntPtr.Zero )
return;
-
+
sourceControl = control;
POINT pt = new POINT ();
}
}
- internal Menu parent_ = null;
+ internal Menu parent_ = null;
internal IntPtr menuHandle_ = IntPtr.Zero;
internal bool isPopupMenu = false;
}
}
- 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 {