コード例 #1
0
 public bool Execute()
 {
     if (_window == null || !_window.IsVisible)
     {
         _window = new CombineZpWindow();
         _viewModel = new CombineZpViewModel(_window);
         _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 CombineZpWindow();
         _viewModel          = new CombineZpViewModel(_window);
         _window.DataContext = _viewModel;
         _window.Owner       = ServiceProvider.PluginManager.SelectedWindow as Window;
         _window.Show();
     }
     else
     {
         _window.Activate();
     }
     return(true);
 }