Ejemplo n.º 1
0
        private void VixenApp_FormClosing(object sender, FormClosingEventArgs e)
        {
            stopping = true;
            VixenSystem.Stop();

            _applicationData.SaveData();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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();
        }