private void DisplayProbeOptions() { if (OptionsWindow.openWindow != null) { OptionsWindow.openWindow.Activate(); } else { var optionsWindow = new OptionsWindow(); optionsWindow.Show(); } }
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(); } }
private void Window_Closed(object sender, EventArgs e) { openWindow = null; }
private void Window_Loaded(object sender, RoutedEventArgs e) { openWindow = this; }