private void VixenApp_FormClosing(object sender, FormClosingEventArgs e) { stopping = true; VixenSystem.Stop(); _applicationData.SaveData(); }
private void VixenApp_FormClosing(object sender, FormClosingEventArgs e) { // close all open editors foreach (IEditorUserInterface editor in _openEditors.ToArray()) { editor.CloseEditor(); } stopping = true; VixenSystem.Stop(); _applicationData.SaveData(); Application.Exit(); }
private async void VixenApp_FormClosing(object sender, FormClosingEventArgs e) { // close all open editors foreach (IEditorUserInterface editor in _openEditors.ToArray()) { editor.CloseEditor(); } stopping = true; await VixenSystem.Stop(false); _applicationData.SaveData(); RemoveLockFile(LockFilePath); Application.Exit(); }
private async void VixenApp_FormClosing(object sender, FormClosingEventArgs e) { // close all open editors foreach (IEditorUserInterface editor in _openEditors.ToArray()) { editor.CloseEditor(); } while (VixenSystem.IsSaving()) { Logging.Warn("Waiting for save to finish before closing."); Thread.Sleep(250); } stopping = true; await VixenSystem.Stop(false); _applicationData.SaveData(); RemoveLockFile(LockFilePath); Application.Exit(); }