void m_notifyIcon_Exit(object sender, EventArgs e) { m_scheduleThread.Stop(); m_scheduleThread.Dispose(); m_notifyIcon.Dispose(); Application.Exit(); }