public VSDemoShellForm(WorkItem workitem, IWorkItemTypeCatalogService workitemTypeCatalog)
     : this()
 {
     this.rootWorkItem = workitem;
     this.dockWorkspace = new DockableWorkSpace(this.dockingManager1, this);
     this.tabbedMdiManagerWorkspace = new TabbedMDIManagerWorkspace(this);
     this.rootWorkItem.Workspaces.Add(dockWorkspace, VSDemoCommon.WorkspaceNames.DockableWorkspace);
     this.rootWorkItem.Workspaces.Add(tabbedMdiManagerWorkspace, VSDemoCommon.WorkspaceNames.TabbedMDIWorkspace);
     AddSplashPanelWorkspace();
 }
        /// <summary>
        /// Shows the controls in workspaces
        /// </summary>
        /// <param name="workspace"></param>
        /// <param name="contentWorkspace"></param>
        public void Show(IWorkspace workspace, IWorkspace contentWorkspace)
        {
            DockingSmartPartInfo smartPartInfo;
            dockworkspace = workspace as DockableWorkSpace;
            tabbedMDIManagerWorkspace = contentWorkspace as TabbedMDIManagerWorkspace;

            //Adding TaskList
            taskList = this.Items.AddNew<TaskList>();
            smartPartInfo = new DockingSmartPartInfo();
            smartPartInfo.Title = "Task List";
            smartPartInfo.DockStyle = DockingStyle.Bottom;
            smartPartInfo.Height = 200;
            smartPartInfo.VisualStyle = VisualStyle.Office2007;
            workspace.Show(taskList, smartPartInfo);

            ////Adding Output Window
            outputWindow = this.Items.AddNew<OutputWindow>();
            smartPartInfo = new DockingSmartPartInfo();
            smartPartInfo.Title = "Output Window";
            smartPartInfo.DockStyle = DockingStyle.Tabbed;
            smartPartInfo.ParentName = "TaskList";
            smartPartInfo.VisualStyle = VisualStyle.Office2007;
            workspace.Show(outputWindow, smartPartInfo);

            //Adding Errorlist
            errorList = this.Items.AddNew<ErrorList>();
            smartPartInfo = new DockingSmartPartInfo();
            smartPartInfo.Title = "Error List";
            smartPartInfo.DockStyle = DockingStyle.Tabbed;
            smartPartInfo.ParentName = "TaskList";
            smartPartInfo.Height = 200;
            smartPartInfo.VisualStyle = VisualStyle.Office2007;
            workspace.Show(errorList, smartPartInfo);

            //Adding toolbox
            groupBarView = this.Items.AddNew<Views.GroupBarView>();
            smartPartInfo = new DockingSmartPartInfo();
            smartPartInfo.Title = "ToolBox";
            smartPartInfo.DockStyle = DockingStyle.Left;
            smartPartInfo.VisualStyle = VisualStyle.Office2007;
            workspace.Show(groupBarView, smartPartInfo);
            Views.Toolbox.ToolBoxWorkItem toolBoxWorkItem = this.WorkItems.AddNew<Views.Toolbox.ToolBoxWorkItem>();
            toolBoxWorkItem.ShowToolBox(this.Workspaces[VSDemoCommon.WorkspaceNames.GroupBarWorkspace]);

            //Adding SolutionExplorer
            //solutionExplorer = this.Items.AddNew<SolutionExplorer>();
            nhapThongTinBenhNhan = this.Items.AddNew<NhapThongTinBenhNhan>();
               // this.UIExtensionSites.RegisterSite(VSDemoCommon.UIElements.TreeView, solutionExplorer.treeViewAdv1);
            smartPartInfo = new DockingSmartPartInfo();
            smartPartInfo.Title = "Solution Explorer";
            smartPartInfo.DockStyle = DockingStyle.Right;
            smartPartInfo.VisualStyle = VisualStyle.Office2007;
               // workspace.Show(solutionExplorer, smartPartInfo);
            workspace.Show(nhapThongTinBenhNhan, smartPartInfo);

            //Adding Properties Window
            /*propertiesWindow = this.Items.AddNew<PropertiesWindow>();
            smartPartInfo = new DockingSmartPartInfo();
            smartPartInfo.Title = "Properties Window";
            smartPartInfo.DockStyle = DockingStyle.Tabbed;
            smartPartInfo.ParentName = "SolutionExplorer";
            smartPartInfo.VisualStyle = VisualStyle.Office2007;
            workspace.Show(propertiesWindow, smartPartInfo);

            //Adding ClassView
            classView = this.Items.AddNew<ClassView>();
            smartPartInfo = new DockingSmartPartInfo();
            smartPartInfo.Title = "Class View";
            smartPartInfo.DockStyle = DockingStyle.Tabbed;
            smartPartInfo.VisualStyle = VisualStyle.Office2007;
            smartPartInfo.ParentName = "SolutionExplorer";
            workspace.Show(classView, smartPartInfo);
             */
        }