Example #1
0
        private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (einstellungenSpeichernToolStripMenuItem.Enabled)
            {
                SaveSettings SaveDialog = new SaveSettings();

                SaveDialog.ShowDialog();
            }

            if (FFN_Switcher.Properties.Settings.Default.AskBeforeQuit)
            {
                DialogResult result;
                result = MessageBox.Show("Soll der Switcher wirklich beendet werden?", "FFN Switcher beenden?", MessageBoxButtons.YesNo);

                if (result == DialogResult.No)
                    e.Cancel=true;
            }
        }
Example #2
0
        private void MainWindow_FormClosed(object sender, FormClosedEventArgs e)
        {
            if (einstellungenSpeichernToolStripMenuItem.Enabled)
            {
                SaveSettings SaveDialog = new SaveSettings();

                SaveDialog.ShowDialog();
            }

            Application.Exit();
        }