public override void OnConnect() { CommandManager.AddCommandGroup <ControlCommands_e>().CommandClick += OnButtonClick; m_WinFormsPMPage = CreatePage <WinFormsPMPage>(); m_WpfPMPage = CreatePage <WpfPMPage>(); }
public override void OnConnect() { m_DataModelCommonOpts = CreatePage <DataModelCommonOpts, MyPMPageHandler>(); m_ComboBoxDataModel = CreatePage <ComboBoxDataModel, MyPMPageHandler>(); m_GroupDataModel = CreatePage <GroupDataModel, MyPMPageHandler>(); m_NumberBoxDataModel = CreatePage <NumberBoxDataModel, MyPMPageHandler>(); m_DataModelPageOpts = CreatePage <DataModelPageOpts, MyPMPageHandler>(); m_DataModelPageAtts = CreatePage <DataModelPageAtts, MyPMPageHandler>(); m_DataModelHelpLinks = CreatePage <DataModelHelpLinks, MyPMPageHandler>(); m_TextBoxDataModel = CreatePage <TextBoxDataModel, MyPMPageHandler>(); m_OptionBoxDataModel = CreatePage <OptionBoxDataModel, MyPMPageHandler>(); m_SelectionBoxDataModel = CreatePage <SelectionBoxDataModel, MyPMPageHandler>(); m_SelectionBoxListDataModel = CreatePage <SelectionBoxListDataModel, MyPMPageHandler>(); m_SelectionBoxCustomSelectionFilterDataModel = CreatePage <SelectionBoxCustomSelectionFilterDataModel, MyPMPageHandler>(); m_ButtonDataModel = CreatePage <ButtonDataModel, MyPMPageHandler>(); m_CheckBoxDataModel = CreatePage <CheckBoxDataModel, MyPMPageHandler>(); m_TabDataModel = CreatePage <TabDataModel, MyPMPageHandler>(); m_BitmapDataModel = CreatePage <BitmapDataModel, MyPMPageHandler>(); m_BitmapButtonDataModel = CreatePage <BitmapButtonDataModel, MyPMPageHandler>(); m_DynamicValuesDataModel = CreatePage <DynamicValuesDataModel, MyPMPageHandler>(); m_CustomWpfControlDataModel = CreatePage <CustomWpfControlPage, MyPMPageHandler>(); m_CustomWinFormsControlDataModel = CreatePage <CustomWinFormsControlPage, MyPMPageHandler>(); this.CommandManager.AddCommandGroup <Pages_e>().CommandClick += OnButtonClick; }
public override void OnConnect() { m_Model = new PMPage(); this.CommandManager.AddCommandGroup <Commands_e>().CommandClick += OnButtonClick;; m_Page = this.CreatePage <PMPage>(); m_Page.Closed += OnPageClosed; }
public override void OnConnect() { this.CommandManager.AddCommandGroup <Commands_e>().CommandClick += OnButtonClick; m_PmpPageCascading = CreatePage <DataModelCascading>(); m_PmpPageCascading.Closed += OnClosed; m_DataModelCascading = new DataModelCascading(); m_PmpPageEnable = CreatePage <DataModelEnable>(); m_PmpPageEnable.Closed += OnClosed; m_DataModelEnable = new DataModelEnable(); }
public override void OnConnect() { CommandManager.AddCommandGroup(new CommandGroupSpec(99) { Title = "Group 1", Commands = new CommandSpec[] { new CommandSpec(1) { Title = "Cmd1", HasMenu = true, HasToolbar = true, HasTabBox = true, TabBoxStyle = RibbonTabTextDisplay_e.TextBelow, SupportedWorkspace = WorkspaceTypes_e.All }, new CommandSpec(4) { Title = "Cmd2", HasMenu = true, HasToolbar = true, HasTabBox = true, TabBoxStyle = RibbonTabTextDisplay_e.TextBelow, SupportedWorkspace = WorkspaceTypes_e.All }, new CommandSpec(5) { Title = "Cmd3", HasMenu = true, HasToolbar = true, HasTabBox = true, TabBoxStyle = RibbonTabTextDisplay_e.TextBelow, SupportedWorkspace = WorkspaceTypes_e.All } } }); CommandManager.AddCommandGroup <Commands_e>().CommandClick += OnCommandClick; CommandManager.AddContextMenu <ContextMenuCommands_e>(Xarial.XCad.Base.Enums.SelectType_e.Faces).CommandClick += OnContextMenuCommandClick; Application.Documents.RegisterHandler <SwDocHandler>(); m_Page = this.CreatePage <PmpData>(OnCreateDynamicControls); m_Page.Closed += OnPage1Closed; m_ToggleGroupPage = this.CreatePage <ToggleGroupPmpData>(); m_ToggleGroupPage.Closed += OnToggleGroupPageClosed; m_MacroFeatPage = this.CreatePage <PmpMacroFeatData>(); m_MacroFeatPage.Closed += OnClosed; }
public override void OnConnect() { m_Data = new DataModel(); m_Page = this.CreatePage <DataModel>(); //--- DataChanged m_Page.DataChanged += OnDataChanged; //--- //--- Closing m_Page.Closing += OnClosing; //--- //--- Closed m_Page.Closed += OnClosed; //--- }
public override void OnConnect() { m_Page = CreatePage <PMPData>(); m_Data = new PMPData(); CommandManager.AddCommandGroup <Commands_e>().CommandClick += OnCommandClick; }
public override void OnConnect() { m_Page = this.CreatePage <MyPMPageData>(); this.CommandManager.AddCommandGroup <Commands_e>().CommandClick += ShowPmpPage; }
public override void OnConnect() { this.CommandManager.AddCommandGroup <Commands_e>().CommandClick += OnButtonClick; m_Page = CreatePage <LocalizedPmPage, PMPageHandler>(); }