示例#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();
            }
        }
示例#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();
     }
 }
示例#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();
     }
 }