private void OptionsExecute(object sender, ExecutedRoutedEventArgs e) { // Open the options window. var optionsWnd = new OptionsWindow(); optionsWnd.Owner = this; if (optionsWnd.ShowDialog() == true) { RefreshGuiState(); RefreshProbeColors(); } }
private void DisplayOptionsWindow() { if (OptionsWindow.openWindow == null) { // Open the options window. var optionsWnd = new OptionsWindow(); optionsWnd.Owner = this; optionsWnd.ShowDialog(); UpdatePopupOptionIsCheckedState(); } else { // Options window is already open. Activate it. OptionsWindow.openWindow.Activate(); } }
private void OptionsExecute(object sender, ExecutedRoutedEventArgs e) { if (OptionsWindow.openWindow == null) { // Open the options window. var optionsWnd = new OptionsWindow(); optionsWnd.Owner = this; if (optionsWnd.ShowDialog() == true) { UpdatePopupOptionIsCheckedState(); RefreshProbeColors(); } } else { // Options window is already open. Activate it. OptionsWindow.openWindow.Activate(); } }