private void tsmiItemClick(object sender, EventArgs e) { ToolStripMenuItem toolStripMenuItem = (ToolStripMenuItem)sender; if (toolStripMenuItem == this.tsmiExit) { try { this.Dispose(true); this.Close(); this.ezUSB.RemoveUSBEventWatcher(); Process.GetCurrentProcess().Kill(); } catch (Exception ex) { HuionLog.saveLog("退出程序", ex.Message); } } else { if (toolStripMenuItem != this.tsmiSettings) { return; } this.Show(); FormSettings.showForm(this.Handle, true, 0); } }
public override void onSettingsButtonClick(object sender, EventArgs e) { base.onSettingsButtonClick(sender, e); FormSettings.showForm(this.Handle, false, 0); }
private static void HotkeyConflictOKClick(object sender, EventArgs e) { ((Control)sender).FindForm().Close(); FormSettings.showForm(Fixer4Main.MainForm.Handle, true, 1); }