本文整理汇总了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);
}
示例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();
}
示例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();
}
示例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);
*/
}