Author: everaldo
Date: 2007-03-29 11:26:46 -0500 (Thu, 29 Mar 2007)
New Revision: 75150

Modified:
   trunk/winforms/notifyicon/swf-balloon.cs
Log:
Show different icon in balloon sample

Modified: trunk/winforms/notifyicon/swf-balloon.cs
===================================================================
--- trunk/winforms/notifyicon/swf-balloon.cs    2007-03-29 15:33:52 UTC (rev 
75149)
+++ trunk/winforms/notifyicon/swf-balloon.cs    2007-03-29 16:26:46 UTC (rev 
75150)
@@ -17,7 +17,7 @@
                notify_icon.Text = "NotifyIcon Text";
                notify_icon.BalloonTipTitle = "Balloon Tip Title";
                notify_icon.BalloonTipText = "Mono has both an optimizing 
just-in-time (JIT) runtime and a interpreter runtime. The interpreter runtime 
is far less complex and is primarly used in the early stages before a JIT 
version for that architecture is constructed. The interpreter is not supported 
on architectures where the JIT has been ported.";
-               notify_icon.BalloonTipIcon = ToolTipIcon.Error;
+               notify_icon.BalloonTipIcon = ToolTipIcon.None;
                notify_icon.Visible = true;
                
                notify_icon.BalloonTipClicked += new EventHandler 
(TestForm_BalloonTipClicked);
@@ -51,6 +51,10 @@
 
        private void btnballoon_Click (object sender, EventArgs e) 
        {
+               int i = (int) notify_icon.BalloonTipIcon;
+               i = (i == 3) ? 0 : i + 1;
+               notify_icon.BalloonTipIcon = (ToolTipIcon) i;
+       
                notify_icon.Visible = true;
                notify_icon.ShowBalloonTip (1000);
        }

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

Reply via email to