Esempio n. 1
0
 private void DisplayProbeOptions()
 {
     if (OptionsWindow.openWindow != null)
     {
         OptionsWindow.openWindow.Activate();
     }
     else
     {
         var optionsWindow = new OptionsWindow();
         optionsWindow.Show();
     }
 }
Esempio n. 2
0
        private void OptionsExecute(object sender, ExecutedRoutedEventArgs e)
        {
            // Open the options window.
            var optionsWnd = new OptionsWindow();

            optionsWnd.Owner = this;
            if (optionsWnd.ShowDialog() == true)
            {
                RefreshGuiState();
                RefreshProbeColors();
            }
        }
Esempio n. 3
0
 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();
     }
 }
Esempio n. 4
0
 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();
     }
 }
Esempio n. 5
0
 private void Window_Closed(object sender, EventArgs e)
 {
     openWindow = null;
 }
Esempio n. 6
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     openWindow = this;
 }