/// <summary> /// Shows the preferences UI /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param> private void Settings_Click(object sender, RoutedEventArgs e) { var preferenceWindow = new PreferenceWindow(); preferenceWindow.ShowDialog(); }
public void SetUp() { window = new PreferenceWindow(); }
/// <summary> /// Shows the preferences window. /// </summary> public void ShowPreferences() { var enabled = timer.Enabled; if (enabled) { timer.Stop(); } var preferenceWindow = new PreferenceWindow(); preferenceWindow.ShowDialog(); if (enabled) { timer.Start(); } // The preferences window has been shown autoShownPreferences = true; }