Exemplo n.º 1
0
        private void notifyIcon1_DoubleClick(object Sender, EventArgs e)
        {
            //MessageBox.Show("Double clicked");
            TrayEventArgs args = new TrayEventArgs();

            args.Action = Actions.ToggleWindow;
            Action(this, args);
        }
Exemplo n.º 2
0
 private void OnTrayDetail(string trayID)
 {
     if (this.eventTrayDetail != null)
     {
         TrayEventArgs trayArgs = new TrayEventArgs();
         trayArgs.TrayID = trayID;
         this.eventTrayDetail.Invoke(this, trayArgs);
     }
 }
Exemplo n.º 3
0
        private void OnTimerTick(object sender, EventArgs e)
        {
            if (clicked)
            {
                clicked = false;

                TrayEventArgs args = new TrayEventArgs();
                args.Action = Actions.ToggleNotify;
                Action(this, args);
            }
        }
Exemplo n.º 4
0
        private void menuExit_Click(object Sender, EventArgs e)
        {
            //notifyIcon1.Visible = false;

            // Close the form, which closes the application.
            //Application.Exit();

            TrayEventArgs args = new TrayEventArgs();

            args.Action = Actions.CloseApplication;
            Action(this, args);
        }
Exemplo n.º 5
0
        private void notifyIcon1_DoubleClick(object Sender, EventArgs e)
        {
            if ((e as MouseEventArgs).Button != MouseButtons.Left)
            {
                return;
            }

            TrayEventArgs args = new TrayEventArgs();

            args.Action = Actions.ToggleWindow;
            Action(this, args);
        }
Exemplo n.º 6
0
 private void OnAddTray(string trayId)
 {
     if (this.eventDeleteTray != null)
     {
         if (this.storageControl1.selectPositions == null)
         {
             ShowMessage("信息提示", "请选中要添加的货位!");
             return;
         }
         TrayEventArgs trayArgs = new TrayEventArgs();
         trayArgs.TrayID      = trayId;
         trayArgs.GsRunStatus = this.storageControl1.selectPositions.RunStatus;
         this.eventAddTray.Invoke(this, trayArgs);
     }
 }