Пример #1
0
        public Form1()
        {
            InitializeComponent();

            _buttonDropA = new RibbonButton(_ribbon, (uint)RibbonMarkupCommands.cmdButtonDropA);
            _spinner = new RibbonSpinner(_ribbon, (uint)RibbonMarkupCommands.cmdSpinner);

            _buttonDropA.ExecuteEvent += new EventHandler<ExecuteEventArgs>(_buttonDropA_ExecuteEvent);
        }
Пример #2
0
 public RibbonItems(Ribbon ribbon)
 {
     if (ribbon == null)
     {
         throw new ArgumentNullException(nameof(ribbon), "Parameter is null");
     }
     this.Ribbon              = ribbon;
     Application              = new RibbonApplicationMenu(ribbon, Cmd.cmdApplication);
     ButtonOpen               = new RibbonButton(ribbon, Cmd.cmdButtonOpen);
     ButtonSaveGpx            = new RibbonButton(ribbon, Cmd.cmdButtonSaveGpx);
     ButtonAbout              = new RibbonButton(ribbon, Cmd.cmdButtonAbout);
     ButtonExit               = new RibbonButton(ribbon, Cmd.cmdButtonExit);
     ButtonHelp               = new RibbonHelpButton(ribbon, Cmd.cmdButtonHelp);
     QAT                      = new RibbonQuickAccessToolbar(ribbon, Cmd.cmdQAT);
     ButtonSession            = new RibbonButton(ribbon, Cmd.cmdButtonSession);
     ButtonLaps               = new RibbonButton(ribbon, Cmd.cmdButtonLaps);
     ButtonMap                = new RibbonButton(ribbon, Cmd.cmdButtonMap);
     ToggleSettings           = new RibbonToggleButton(ribbon, Cmd.cmdToggleSettings);
     TabGroupSettings         = new RibbonTabGroup(ribbon, Cmd.cmdTabGroupSettings);
     TabSettings              = new RibbonTab(ribbon, Cmd.cmdTabSettings);
     GroupApp                 = new RibbonGroup(ribbon, Cmd.cmdGroupApp);
     CheckCurrentAppSize      = new RibbonCheckBox(ribbon, Cmd.cmdCheckCurrentAppSize);
     GroupMapControl          = new RibbonGroup(ribbon, Cmd.cmdGroupMapControl);
     SpinnerMapWidth          = new RibbonSpinner(ribbon, Cmd.cmdSpinnerMapWidth);
     SpinnerMapHeight         = new RibbonSpinner(ribbon, Cmd.cmdSpinnerMapHeight);
     Hidden1                  = new RibbonButton(ribbon, Cmd.cmdHidden1);
     GroupSettings            = new RibbonGroup(ribbon, Cmd.cmdGroupSettings);
     ButtonSaveSettings       = new RibbonButton(ribbon, Cmd.cmdButtonSaveSettings);
     TabChart                 = new RibbonTab(ribbon, Cmd.CmdTabChart);
     GroupChartSelect         = new RibbonGroup(ribbon, Cmd.cmdGroupChartSelect);
     ComboSelect              = new RibbonComboBox(ribbon, Cmd.cmdComboSelect);
     ToggleSmooth             = new RibbonToggleButton(ribbon, Cmd.cmdToggleSmooth);
     GroupChartSpeed          = new RibbonGroup(ribbon, Cmd.cmdGroupChartSpeed);
     ButtonSpeed              = new RibbonCheckBox(ribbon, Cmd.cmdButtonSpeed);
     ButtonCadence            = new RibbonCheckBox(ribbon, Cmd.cmdButtonCadence);
     GroupChartPower          = new RibbonGroup(ribbon, Cmd.cmdGroupChartPower);
     ButtonPower              = new RibbonCheckBox(ribbon, Cmd.cmdButtonPower);
     ButtonLRBalance          = new RibbonCheckBox(ribbon, Cmd.cmdButtonLRBalance);
     ButtonHeartRate          = new RibbonCheckBox(ribbon, Cmd.cmdButtonHeartRate);
     GroupChartPower1         = new RibbonGroup(ribbon, Cmd.cmdGroupChartPower1);
     ComboPower               = new RibbonComboBox(ribbon, Cmd.cmdComboPower);
     ComboLRBalance           = new RibbonComboBox(ribbon, Cmd.cmdComboLRBalance);
     GroupChartEffectiveness  = new RibbonGroup(ribbon, Cmd.cmdGroupChartEffectiveness);
     ButtonLTorqueEff         = new RibbonCheckBox(ribbon, Cmd.cmdButtonLTorqueEff);
     ButtonRTorqueEff         = new RibbonCheckBox(ribbon, Cmd.cmdButtonRTorqueEff);
     GroupChartEffectiveness1 = new RibbonGroup(ribbon, Cmd.cmdGroupChartEffectiveness1);
     ComboLTorque             = new RibbonComboBox(ribbon, Cmd.cmdComboLTorque);
     ComboRTorque             = new RibbonComboBox(ribbon, Cmd.cmdComboRTorque);
     GroupChartSmoothness     = new RibbonGroup(ribbon, Cmd.cmdGroupChartSmoothness);
     ButtonLSmoothness        = new RibbonCheckBox(ribbon, Cmd.cmdButtonLSmoothness);
     ButtonRSmoothness        = new RibbonCheckBox(ribbon, Cmd.cmdButtonRSmoothness);
     GroupChartSmoothness1    = new RibbonGroup(ribbon, Cmd.cmdGroupChartSmoothness1);
     ComboLSmoothness         = new RibbonComboBox(ribbon, Cmd.cmdComboLSmoothness);
     ComboRSmoothness         = new RibbonComboBox(ribbon, Cmd.cmdComboRSmoothness);
     GroupChartClimbing       = new RibbonGroup(ribbon, Cmd.cmdGroupChartClimbing);
     ButtonAltitude           = new RibbonCheckBox(ribbon, Cmd.cmdButtonAltitude);
     ButtonGrade              = new RibbonCheckBox(ribbon, Cmd.cmdButtonGrade);
     GroupChartExtras         = new RibbonGroup(ribbon, Cmd.cmdGroupChartExtras);
     ButtonTemperature        = new RibbonCheckBox(ribbon, Cmd.cmdButtonTemperature);
     TabView                  = new RibbonTab(ribbon, Cmd.cmdTabView);
     GroupTotals              = new RibbonGroup(ribbon, Cmd.cmdGroupTotals);
     GroupExtras              = new RibbonGroup(ribbon, Cmd.cmdGroupExtras);
     ButtonMyExtras           = new RibbonButton(ribbon, Cmd.cmdButtonMyExtras);
     GroupMaps                = new RibbonGroup(ribbon, Cmd.cmdGroupMaps);
     GroupZones               = new RibbonGroup(ribbon, Cmd.cmdGroupZones);
     ButtonHeartRateZones     = new RibbonButton(ribbon, Cmd.cmdButtonHeartRateZones);
     ButtonPowerZones         = new RibbonButton(ribbon, Cmd.cmdButtonPowerZones);
     GroupIntern              = new RibbonGroup(ribbon, Cmd.cmdGroupIntern);
     ButtonActivity           = new RibbonButton(ribbon, Cmd.cmdButtonActivity);
     ButtonDeveloperDataId    = new RibbonButton(ribbon, Cmd.cmdButtonDeveloperDataId);
     ButtonDeviceInfo         = new RibbonButton(ribbon, Cmd.cmdButtonDeviceInfo);
     ButtonEvent              = new RibbonButton(ribbon, Cmd.cmdButtonEvent);
     ButtonFieldDescription   = new RibbonButton(ribbon, Cmd.cmdButtonFieldDescription);
     ButtonFileId             = new RibbonButton(ribbon, Cmd.cmdButtonFileId);
     ButtonSport              = new RibbonButton(ribbon, Cmd.cmdButtonSport);
     ButtonWorkout            = new RibbonButton(ribbon, Cmd.cmdButtonWorkout);
     ButtonWahooFF00          = new RibbonButton(ribbon, Cmd.cmdButtonWahooFF00);
     ButtonWahooFF01          = new RibbonButton(ribbon, Cmd.cmdButtonWahooFF01);
     Hidden2                  = new RibbonButton(ribbon, Cmd.cmdHidden2);
 }