private void ExitToolStripMenuItem_Click(object sender, EventArgs e) { Ticker.Stop(); Running = false; if (Setting.cam != null) { Setting.cam.SignalToStop(); Setting.cam.WaitForStop(); } Prefs.Save(); Close(); }
private void TaskBox_FormClosing(object sender, FormClosingEventArgs e) { Prefs.Save(); }