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