예제 #1
0
 public void ShowTrayTip(string balloonTipText, Action action = null)
 {
     if (action != null)
     {
         tipAction = action;
     }
     trayIcon.ShowBalloonTip(TipTimeout, trayIcon.BalloonTipTitle, balloonTipText, trayIcon.BalloonTipIcon);
 }
예제 #2
0
        private void showBalloon(string title, string body, int seconds)
        {
            if (title != null)
            {
                ni.BalloonTipTitle = title;
            }

            if (body != null)
            {
                ni.BalloonTipText = body;
            }

            ni.ShowBalloonTip(seconds);
        }
예제 #3
0
 /// <summary>
 /// this event is called after no network connection is avelibil
 /// to trigger a Windows notification
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void NetworkChange_NetworkAddressChanged(object sender, EventArgs e)
 {
     DynamicVals.GetIPaddrs();
     if (DynamicVals.IP_Addrs == null || DynamicVals.IP_Addrs == String.Empty || DynamicVals.IP_Addrs == "NO CONNECTION")
     {
         if (!NETnotifcationOneTime)
         {
             nicon.ShowBalloonTip(5, "No Network Connection", "Please check the network connection of the client ", System.Windows.Forms.ToolTipIcon.Error);
             NETnotifcationOneTime = true;
         }
     }
     else
     {
         NETnotifcationOneTime = false;
     }
 }