Author: everaldo
Date: 2007-01-01 05:11:57 -0500 (Mon, 01 Jan 2007)
New Revision: 70314
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContextMenu.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs
Log:
Clean code and fix identation
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContextMenu.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContextMenu.cs
2007-01-01 10:07:37 UTC (rev 70313)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContextMenu.cs
2007-01-01 10:11:57 UTC (rev 70314)
@@ -22,11 +22,7 @@
// Authors:
// Jordi Mas i Hernandez, [EMAIL PROTECTED]
//
-//
-
-// COMPLETE
-
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
@@ -41,11 +37,14 @@
private Control src_control;
#region Events
+
static object PopupEvent = new object ();
+
public event EventHandler Popup {
add { Events.AddHandler (PopupEvent, value); }
remove { Events.RemoveHandler (PopupEvent, value); }
}
+
#endregion Events
public ContextMenu () : base (null)
@@ -59,6 +58,7 @@
}
#region Public Properties
+
[Localizable(true)]
#if NET_2_0
[DefaultValue (RightToLeft.No)]
@@ -80,7 +80,7 @@
protected internal virtual void OnPopup (EventArgs e)
{
- EventHandler eh = (EventHandler)(Events [PopupEvent]);
+ EventHandler eh = (EventHandler) (Events [PopupEvent]);
if (eh != null)
eh (this, e);
}
@@ -98,9 +98,5 @@
}
#endregion Public Methods
-
-
}
}
-
-
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs
2007-01-01 10:07:37 UTC (rev 70313)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs
2007-01-01 10:11:57 UTC (rev 70314)
@@ -217,6 +217,7 @@
MenuTracker tracker = new MenuTracker (menu);
tracker.active = true;
tracker.popup_active = true;
+ tracker.grab_control.ActiveTracker = tracker;
menu.tracker = tracker;
menu.Wnd = new PopUpWindow (tracker.grab_control, menu);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches