private void Quit_Click(object sender, EventArgs e) { controller.Stop(); if (configForm != null) { configForm.Close(); configForm = null; } if (serverLogForm != null) { serverLogForm.Close(); serverLogForm = null; } _notifyIcon.Visible = false; Application.Exit(); }
private void Quit_Click(object sender, EventArgs e) { controller.Stop(); if (configForm != null) { configForm.Close(); configForm = null; } if (serverLogForm != null) { serverLogForm.Close(); serverLogForm = null; } if (timerDelayCheckUpdate != null) { timerDelayCheckUpdate.Elapsed -= timer_Elapsed; timerDelayCheckUpdate.Stop(); timerDelayCheckUpdate = null; } _notifyIcon.Visible = false; Application.Exit(); }