예제 #1
0
 public bool Execute()
 {
     if (_window == null || !_window.IsVisible)
     {
         _window             = new ArduinoWindow();
         _window.DataContext = _viewModel;
         _window.Owner       = ServiceProvider.PluginManager.SelectedWindow as Window;
         _window.Show();
     }
     else
     {
         _window.Activate();
     }
     return(true);
 }
예제 #2
0
 public bool Execute()
 {
     if (_window == null || !_window.IsVisible)
     {
         _window = new ArduinoWindow();
         _window.DataContext = _viewModel;
         _window.Owner = ServiceProvider.PluginManager.SelectedWindow as Window;
         _window.Show();
     }
     else
     {
         _window.Activate();
     }
     return true;
 }