예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }