コード例 #1
0
        private void ToggleSettings()
        {
            var settingsFlyout = (Flyout)Flyouts.Items[0];

            settingsFlyout.IsOpen = !settingsFlyout.IsOpen;
            if (settingsFlyout.IsOpen)
            {
                DisplaySettings.SaveState();
            }
        }
コード例 #2
0
        private void ToggleSettings(object sender, RoutedEventArgs e)
        {
            var settingsFlyout = (Flyout)Flyouts.Items[0];

            settingsFlyout.IsOpen = !settingsFlyout.IsOpen;
            if (settingsFlyout.IsOpen)
            {
                DisplaySettings.SaveState();
            }
        }
コード例 #3
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();
        }
コード例 #4
0
 private void SettingsClosingFinished(object sender, RoutedEventArgs e) => DisplaySettings.SaveIfModified();
コード例 #5
0
 private void OnClosing(object sender, CancelEventArgs cancelEventArgs)
 {
     Editor.CloseHelp();
     DisplaySettings.SaveIfModified();
     cancelEventArgs.Cancel = !Editor.SaveIfModified();
 }