Beispiel #1
0
        private void Tastudio_Closing(object sender, FormClosingEventArgs e)
        {
            if (!_initialized)
            {
                return;
            }

            _exiting = true;
            if (AskSaveChanges())
            {
                WantsToControlStopMovie = false;
                GlobalWin.MainForm.StopMovie(saveChanges: false);
                DisengageTastudio();
            }
            else
            {
                e.Cancel = true;
                _exiting = false;
            }

            if (undoForm != null)
            {
                undoForm.Close();
            }
        }
Beispiel #2
0
        private void Tastudio_Closing(object sender, FormClosingEventArgs e)
        {
            if (!_initialized)
            {
                return;
            }

            _exiting = true;

            if (AskSaveChanges())
            {
                WantsToControlStopMovie = false;
                TastudioStopMovie();
                Disengage();
            }
            else
            {
                e.Cancel = true;
                _exiting = false;
            }

            _undoForm?.Close();
        }