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; }
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); }