public void ActivateSelectedWorkspace() { if (_selectedWorkspace != null) { _selectedWorkspace.Activate(); } }
void Launch() { if (_workspace == null) { try { DesktopMonitorComponent component = new DesktopMonitorComponent(); _workspace = ApplicationComponent.LaunchAsWorkspace( this.Context.DesktopWindow, component, "Desktop Monitor"); _workspace.Closed += delegate { _workspace = null; }; } catch (Exception e) { ExceptionHandler.Report(e, this.Context.DesktopWindow); } } else { _workspace.Activate(); } }