private void MainWindow_FormClosing(object sender, FormClosingEventArgs e) { StatusUpdate.Stop(); SlowMotionController.Properties.Settings.Default.DefaultReplayDuration = (int)DefaultReplayDuration.Value; SlowMotionController.Properties.Settings.Default.Save(); this.Dispose(); }