Beispiel #1
0
        private void trayIcon_BalloonTipClicked(object sender, EventArgs e)
        {
            ReshowForm();
            IBalloonClickHander hander = this.trayIcon.Tag as IBalloonClickHander;

            if (hander != null)
            {
                try
                {
                    hander.OnClick();
                }
                catch (Exception ex)
                {
                    UIContext.Instance.HandleError(ex);
                }
            }
        }
Beispiel #2
0
 void IUIContext.ShowTrayTooltip(string caption, string message, ToolTipIcon tipIcon, IBalloonClickHander balloonClickHander)
 {
     mainForm.ShowTrayTooltip(caption, message, tipIcon, balloonClickHander);
 }
Beispiel #3
0
 public TrayIconParams(string caption, string message, ToolTipIcon tipIcon, IBalloonClickHander balloonClickHander)
 {
     this.Caption            = caption;
     this.Message            = message;
     this.TipIcon            = tipIcon;
     this.BalloonClickHander = balloonClickHander;
 }
Beispiel #4
0
 void IUIContext.ShowTrayTooltip(string caption, string message, ToolTipIcon tipIcon, IBalloonClickHander balloonClickHander)
 {
     lock (trayIconSync)
     {
         queuedTrayIconItems.Enqueue(new TrayIconParams(caption, message, tipIcon, balloonClickHander));
     }
 }