Exemplo n.º 1
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();
            }
        }
Exemplo n.º 2
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();
     }
 }
Exemplo n.º 3
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();
     }
 }