示例#1
0
 public void ActivateSelectedWorkspace()
 {
     if (_selectedWorkspace != null)
     {
         _selectedWorkspace.Activate();
     }
 }
示例#2
0
 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();
     }
 }