[Mono-dev] Stubs for two missing methods in Managed.Windows.Forms
Leszek Ciesielski
skolima at gmail.com
Fri Apr 20 13:51:00 EDT 2007
I am fiddling around trying to get EveMon to work on mono, this patch
adds stubs for two missing methods. Changelog included.
--
MS-DOS user since 5.0
Windows user since 3.11
Linux user since kernel 2.4
Novell Netware user since 2.2
WARCRAFT user since 1.0
-------------- next part --------------
Index: System.Windows.Forms/ChangeLog
===================================================================
--- System.Windows.Forms/ChangeLog (wersja 76011)
+++ System.Windows.Forms/ChangeLog (kopia robocza)
@@ -1,3 +1,8 @@
+2007-04-20 Leszek Ciesielski <skolima at gmail.com>
+
+ * NotifyIcon.cs : stub for MouseClick event
+ * Application.cs: stub for SetUnhandledExceptionMode
+
2007-04-20 Gert Driesen <drieseng at users.sourceforge.net>
* XplatUI.cs: Added MenuAccessKeysUnderlined.
Index: System.Windows.Forms/NotifyIcon.cs
===================================================================
--- System.Windows.Forms/NotifyIcon.cs (wersja 76011)
+++ System.Windows.Forms/NotifyIcon.cs (kopia robocza)
@@ -703,6 +703,7 @@
static object BalloonTipClickedEvent = new object ();
static object BalloonTipClosedEvent = new object ();
static object BalloonTipShownEvent = new object ();
+ static object MouseClickEvent = new object ();
[MWFCategory("Action")]
public event EventHandler BalloonTipClicked {
@@ -721,6 +722,13 @@
add { Events.AddHandler (BalloonTipShownEvent, value); }
remove { Events.RemoveHandler (BalloonTipShownEvent, value); }
}
+
+ [MWFCategory("Action")]
+ [MonoNotSupported("This is not raised anywhere.")]
+ public event MouseEventHandler MouseClick {
+ add { Events.AddHandler (MouseClickEvent, value); }
+ remove { Events.RemoveHandler (MouseClickEvent, value); }
+ }
#endif
#if NET_2_0
Index: System.Windows.Forms/Application.cs
===================================================================
--- System.Windows.Forms/Application.cs (wersja 76011)
+++ System.Windows.Forms/Application.cs (kopia robocza)
@@ -377,6 +377,12 @@
}
}
+ [MonoNotSupported ("Empty stub.")]
+ public static void SetUnhandledExceptionMode (UnhandledExceptionMode mode)
+ {
+ //FIXME: a stub to fill
+ }
+
public static void Restart ()
{
//FIXME: ClickOnce stuff using the Update or UpdateAsync methods.
More information about the Mono-devel-list
mailing list