Ejemplo n.º 1
0
        private void OnClosing(object sender, CancelEventArgs cancelEventArgs)
        {
            Editor.CloseHelp();
            DisplaySettings.SaveIfModified();
            cancelEventArgs.Cancel = !Editor.SaveIfModified();
            if (cancelEventArgs.Cancel || App.UserSettings.YesIDonated)
            {
                return;
            }
            var donate = new Donate {
                Owner = Application.Current.MainWindow
            };

            donate.ShowDialog();
        }
Ejemplo n.º 2
0
 private void SettingsClosingFinished(object sender, RoutedEventArgs e) => DisplaySettings.SaveIfModified();
Ejemplo n.º 3
0
 private void OnClosing(object sender, CancelEventArgs cancelEventArgs)
 {
     Editor.CloseHelp();
     DisplaySettings.SaveIfModified();
     cancelEventArgs.Cancel = !Editor.SaveIfModified();
 }