当前位置: 首页>>代码示例>>C#>>正文


C# IWorkspace.Show方法代码示例

本文整理汇总了C#中IWorkspace.Show方法的典型用法代码示例。如果您正苦于以下问题:C# IWorkspace.Show方法的具体用法?C# IWorkspace.Show怎么用?C# IWorkspace.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IWorkspace的用法示例。


在下文中一共展示了IWorkspace.Show方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ShowToolBox

        public void ShowToolBox(IWorkspace barWorkspace)
        {
            Syncfusion.CAB.WinForms.SmartPartInfos.GroupBarSmartPartInfo gpSmartPartInfo;

            gpSmartPartInfo = new Syncfusion.CAB.WinForms.SmartPartInfos.GroupBarSmartPartInfo();
            gpSmartPartInfo.BarDisplayText = "Windows Form Controls";
            barWorkspace.Show(this.Items.AddNew<WindowsFormsTab>(), gpSmartPartInfo);
            gpSmartPartInfo = new Syncfusion.CAB.WinForms.SmartPartInfos.GroupBarSmartPartInfo();
            gpSmartPartInfo.BarDisplayText = "Components";
            barWorkspace.Show(this.Items.AddNew<ComponentsTab>(), gpSmartPartInfo);
            gpSmartPartInfo = new Syncfusion.CAB.WinForms.SmartPartInfos.GroupBarSmartPartInfo();
            gpSmartPartInfo.BarDisplayText = "Syncfusion Controls";
            barWorkspace.Show(this.Items.AddNew<SyncfusionTab>(), gpSmartPartInfo);
        }
开发者ID:abramhindle,项目名称:easy-clinic,代码行数:14,代码来源:ToolBoxWorkItem.cs

示例2: Show

        // Here we populate the work item with some of our views and start showing
        // ourselves. The BankTellerMainView has smart part placeholders named
        // UserInfo and CustomerList; these are filled in at runtime with the
        // smart parts that are registered with those names. We chose to put a
        // UserInfoView in the "UserInfo" placeholder, and a CustomerQueueView
        // in the "CustomerList" placeholder.
        //
        // Note that order is important here. When we create the BankTellerMainView,
        // it is going to assume that the smart parts that it needs already exist
        // in the work item. Therefore, we create the smart parts first, and then
        // create the main view that contains them.
        public void Show(IWorkspace sideBar, IWorkspace content)
        {
            contentWorkspace = content;

            //Needs to be named because it will be used in a placeholder
            this.Items.AddNew<UserInfoView>("UserInfo");
            SideBarView sideBarView = this.Items.AddNew<SideBarView>();

            AddMenuItems();

            sideBar.Show(sideBarView);
            this.Activate();
        }
开发者ID:BackupTheBerlios,项目名称:sofia-svn,代码行数:24,代码来源:BankTellerWorkItem.cs

示例3: Show

        public void Show(IWorkspace parentWorkspace)
        {
            customerSummaryView = customerSummaryView ?? Items.AddNew<CustomerSummaryView>();
            parentWorkspace.Show(customerSummaryView);

            AddMenuItems();

            Customer customer = (Customer) State[StateConstants.CUSTOMER];
            OnStatusTextUpdate(string.Format("Editing {0}, {1}", customer.LastName, customer.FirstName));

            UpdateUserAddressLabel(customer);

            this.Activate();

            // When activating, force focus on the first tab in the view.
            // Extensions may have added stuff at the end of the tab.
            customerSummaryView.FocusFirstTab();
        }
开发者ID:BackupTheBerlios,项目名称:sofia-svn,代码行数:18,代码来源:CustomerWorkItem.cs

示例4: Show

        /// <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);
             */
        }
开发者ID:abramhindle,项目名称:easy-clinic,代码行数:79,代码来源:VSDemoWorkItem.cs


注:本文中的IWorkspace.Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。