Ejemplo n.º 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);
                }
            }
        }
Ejemplo n.º 2
0
 void IUIContext.ShowTrayTooltip(string caption, string message, ToolTipIcon tipIcon, IBalloonClickHander balloonClickHander)
 {
     mainForm.ShowTrayTooltip(caption, message, tipIcon, balloonClickHander);
 }
Ejemplo n.º 3
0
 public TrayIconParams(string caption, string message, ToolTipIcon tipIcon, IBalloonClickHander balloonClickHander)
 {
     this.Caption            = caption;
     this.Message            = message;
     this.TipIcon            = tipIcon;
     this.BalloonClickHander = balloonClickHander;
 }
Ejemplo n.º 4
0
 void IUIContext.ShowTrayTooltip(string caption, string message, ToolTipIcon tipIcon, IBalloonClickHander balloonClickHander)
 {
     lock (trayIconSync)
     {
         queuedTrayIconItems.Enqueue(new TrayIconParams(caption, message, tipIcon, balloonClickHander));
     }
 }