private void notifyIcon1_DoubleClick(object Sender, EventArgs e) { //MessageBox.Show("Double clicked"); TrayEventArgs args = new TrayEventArgs(); args.Action = Actions.ToggleWindow; Action(this, args); }
private void OnTrayDetail(string trayID) { if (this.eventTrayDetail != null) { TrayEventArgs trayArgs = new TrayEventArgs(); trayArgs.TrayID = trayID; this.eventTrayDetail.Invoke(this, trayArgs); } }
private void OnTimerTick(object sender, EventArgs e) { if (clicked) { clicked = false; TrayEventArgs args = new TrayEventArgs(); args.Action = Actions.ToggleNotify; Action(this, args); } }
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); }
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); }
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); } }