Пример #1
0
        void NewWorkspace()
        {
            string name = "Workspace " + (_workspaceCount++);

            ApplicationComponent.LaunchAsWorkspace(
                this.Context.DesktopWindow,
                new TestComponent(name),
                name,
                name);
        }
Пример #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();
     }
 }