public void OnShowDynamicHelp(object sender, EventArgs e) { DynamicHelpView view = WorkItem.SmartParts.Get<DynamicHelpView>(SmartPartNames.SmartPart_Shell_DynamicHelp); if (view == null) view = WorkItem.SmartParts.AddNew<DynamicHelpView>(SmartPartNames.SmartPart_Shell_DynamicHelp); IWorkspace wp = WorkItem.Workspaces[UIExtensionSiteNames.Shell_Workspace_Dockable]; if (wp != null) { DockManagerSmartPartInfo spi = new DockManagerSmartPartInfo(); spi.Title = "动态帮助"; spi.ImageFile = "${help}"; spi.Tabbed = true; spi.Dock = DevExpress.XtraBars.Docking.DockingStyle.Right; wp.Show(view, spi); } }
public void OnShowTaskbar(object sender, EventArgs e) { TaskbarView view = WorkItem.SmartParts.Get<TaskbarView>(SmartPartNames.SmartPart_Shell_TaskbarView); if (view == null) view = WorkItem.SmartParts.AddNew<TaskbarView>(SmartPartNames.SmartPart_Shell_TaskbarView); IWorkspace wp = WorkItem.Workspaces[UIExtensionSiteNames.Shell_Workspace_Dockable]; if (wp != null) { DockManagerSmartPartInfo spi = new DockManagerSmartPartInfo(); spi.Title = "关联任务"; spi.ImageFile = "${magic-wand}"; spi.Tabbed = true; spi.Dock = DevExpress.XtraBars.Docking.DockingStyle.Right; wp.Show(view, spi); } }