//--- 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; //--- }
internal EnumTaskPane(IXTaskPane <TControl> taskPane) { m_TaskPane = taskPane; m_TaskPane.ButtonClick += OnButtonClick; }
internal EnumTaskPane(IXTaskPane <TControl> taskPane) { m_TaskPane = taskPane; m_TaskPane.ButtonClick += OnButtonClick; ControlCreated?.Invoke(m_TaskPane.Control); }