private void OnCommandClick(PanelCommands_e spec) { //--- ModelViewTab var winFormModelViewTab = CreateDocumentTab <WinFormControl>(Application.Documents.Active); WinFormControl winFormModelViewCtrl = winFormModelViewTab.Control; var wpfModelViewTab = CreateDocumentTab <WpfControl>(Application.Documents.Active); WpfControl wpfModelViewTabCtrl = wpfModelViewTab.Control; //--- //--- FeatMgrTab var winFormFeatMgrTab = CreateFeatureManagerTab <WinFormControl>(Application.Documents.Active); WinFormControl winFeatMgrFormCtrl = winFormFeatMgrTab.Control; var wpfFeatMgrTab = CreateFeatureManagerTab <WpfControl>(Application.Documents.Active); WpfControl wpfFeatMgrTabCtrl = wpfFeatMgrTab.Control; //--- //--- Popup var winFormPopupWnd = CreatePopupWindow <WinForm>(); winFormPopupWnd.ShowDialog(); var wpfPopupWnd = CreatePopupWindow <WpfWindow>(); wpfPopupWnd.ShowDialog(); //--- }
//--- public override void OnConnect() { this.CommandManager.AddCommandGroup <PanelCommands_e>().CommandClick += OnCommandClick; //--- TaskPaneSimple var taskPane = CreateTaskPane <WinFormControl>(); WinFormControl control = taskPane.Control; //--- //--- TaskPaneCommands var cmdTaskPane = this.CreateTaskPane <WpfControl, TaskPaneCommands_e>(); cmdTaskPane.ButtonClick += OnTaskPaneButtonClick; m_TaskPane = cmdTaskPane; //--- }