public WorkWithModalForm(Microsoft.Practices.CompositeUI.WorkItem workItem, bool displayCommandsInTaskPane) { this.InitializeComponent(); this.m_WorkItem = workItem; base.KeyPreview = true; base.KeyDown += new KeyEventHandler(this.MainShell_KeyDown); if (displayCommandsInTaskPane) { TaskPanel smartPart = workItem.SmartParts.AddNew <TaskPanel>(); this.m_SiteControl = smartPart.ExplorerBar; this.ultraDockWorkspace1.Show(smartPart); this.ultraToolbarsManager1.Toolbars[0].Visible = false; } else { this.ultraToolbarsManager1.Toolbars[0].IsMainMenuBar = true; this.m_SiteControl = this.ultraToolbarsManager1.Toolbars[0]; } }
public InstanceModalForm([ServiceDependency] Microsoft.Practices.CompositeUI.WorkItem workItem) : this() { this.m_WorkItem = workItem; }