Author: everaldo
Date: 2007-03-27 11:51:44 -0500 (Tue, 27 Mar 2007)
New Revision: 75030

Modified:
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
Log:
2007-03-27  Everaldo Canuto  <[EMAIL PROTECTED]>

        * NotifyIcon.cs: Balloon events added (BalloonTipClicked, 
BalloonTipClosed,
        BalloonTipShown).



Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-03-27 16:40:37 UTC (rev 75029)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2007-03-27 16:51:44 UTC (rev 75030)
@@ -1,3 +1,8 @@
+2007-03-27  Everaldo Canuto  <[EMAIL PROTECTED]>
+
+       * NotifyIcon.cs: Balloon events added (BalloonTipClicked, 
BalloonTipClosed,
+       BalloonTipShown).
+
 2007-03-27  Jonathan Pobst  <[EMAIL PROTECTED]>
 
        * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs    
2007-03-27 16:40:37 UTC (rev 75029)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NotifyIcon.cs    
2007-03-27 16:51:44 UTC (rev 75030)
@@ -250,6 +250,28 @@
                #endregion Public Methods
                
                #region Private Methods
+#if NET_2_0
+               private void OnBalloonTipClicked (EventArgs e)
+               {
+                       EventHandler eh = (EventHandler)(Events 
[BalloonTipClickedEvent]);
+                       if (eh != null)
+                               eh (this, e);
+               }
+
+               private void OnBalloonTipClosed (EventArgs e)
+               {
+                       EventHandler eh = (EventHandler)(Events 
[BalloonTipClosedEvent]);
+                       if (eh != null)
+                               eh (this, e);
+               }
+
+               private void OnBalloonTipShown (EventArgs e)
+               {
+                       EventHandler eh = (EventHandler)(Events 
[BalloonTipShownEvent]);
+                       if (eh != null)
+                               eh (this, e);
+               }
+#endif
                private void OnClick (EventArgs e)
                {
                        EventHandler eh = (EventHandler)(Events [ClickEvent]);
@@ -506,7 +528,31 @@
                static object MouseUpEvent = new object ();
 
 #if NET_2_0
+               static object BalloonTipClickedEvent = new object ();
+               static object BalloonTipClosedEvent = new object ();
+               static object BalloonTipShownEvent = new object ();
+
                [MWFCategory("Action")]
+               public event EventHandler BalloonTipClicked {
+                       add { Events.AddHandler (BalloonTipClickedEvent, 
value); }
+                       remove { Events.RemoveHandler (BalloonTipClickedEvent, 
value); }
+               }
+
+               [MWFCategory("Action")]
+               public event EventHandler BalloonTipClosed {
+                       add { Events.AddHandler (BalloonTipClosedEvent, value); 
}
+                       remove { Events.RemoveHandler (BalloonTipClosedEvent, 
value); }
+               }
+
+               [MWFCategory("Action")]
+               public event EventHandler BalloonTipShown {
+                       add { Events.AddHandler (BalloonTipShownEvent, value); }
+                       remove { Events.RemoveHandler (BalloonTipShownEvent, 
value); }
+               }
+#endif
+
+#if NET_2_0
+               [MWFCategory("Action")]
 #else
                [Category("Action")]
 #endif

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

Reply via email to