private void ToggleSettings() { var settingsFlyout = (Flyout)Flyouts.Items[0]; settingsFlyout.IsOpen = !settingsFlyout.IsOpen; if (settingsFlyout.IsOpen) { DisplaySettings.SaveState(); } }
private void ToggleSettings(object sender, RoutedEventArgs e) { var settingsFlyout = (Flyout)Flyouts.Items[0]; settingsFlyout.IsOpen = !settingsFlyout.IsOpen; if (settingsFlyout.IsOpen) { DisplaySettings.SaveState(); } }
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(); }
private void SettingsClosingFinished(object sender, RoutedEventArgs e) => DisplaySettings.SaveIfModified();
private void OnClosing(object sender, CancelEventArgs cancelEventArgs) { Editor.CloseHelp(); DisplaySettings.SaveIfModified(); cancelEventArgs.Cancel = !Editor.SaveIfModified(); }