static void quitTimer_Tick(object sender, EventArgs e) { s_singleton.m_really_close = true; s_singleton.m_tray.Visible = false; NetService.Stop(); TouchVerifyCore.Stop(); Application.Exit(); }
private void Workbench_Load(object sender, EventArgs e) { s_singleton = this; m_trayFlashTimer = new TrayFlashTimer(m_tray); StartPosition = FormStartPosition.Manual; Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - 300, 50); Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); TouchVerifyCore.Start(); NetService.Start(); Logger.WriteLine(DataManager.DisplayVersion); }