예제 #1
0
 public override void Execute()
 {
     if (_view == null)
     {
         _view             = new();
         _view.Owner       = Application.Current.MainWindow;
         _vm               = new(_wvm.Clipboard.LoadedBuffers);
         _view.DataContext = _vm;
         _view.Show();
         _wvm.SelectedTabIndex = 3;
     }
     else
     {
         _view.Show();
         _wvm.SelectedTabIndex = 3;
     }
 }
예제 #2
0
 public override void Execute()
 {
     if (view == null)
     {
         view                = new();
         view.Owner          = Application.Current.MainWindow;
         view.WorldViewModel = _wvm;
         view.DataContext    = view;
         view.Show();
         _wvm.SelectedTabIndex = 3;
     }
     else
     {
         view.Show();
         _wvm.SelectedTabIndex = 3;
     }
 }