/// <summary> /// Handler for OptionsMenuItem Click event /// </summary> private void OptionsMenuItemClick(object sender, RoutedEventArgs e) { var optionsWindow = new OptionsWindow(Options) { Owner = this, WindowStartupLocation = WindowStartupLocation.CenterOwner, }; optionsWindow.Closed += OnOptionsUpdated; optionsWindow.Show(); }
/// <summary> /// Handler for OptionsMenuItem Click event /// </summary> private void OptionsMenuItemClick(object sender, RoutedEventArgs e) { // Show the window and wait for the response var optionsWindow = new OptionsWindow(); optionsWindow.UIOptions = UIOptions; optionsWindow.Owner = this; optionsWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; optionsWindow.Refresh(); optionsWindow.Show(); }