Пример #1
0
 public ToolBarComboBoxCommand(Type commandGroup, int commandID, int fillCommandID, ComboBoxToolBarButton button)
     : base(commandGroup, commandID, button)
 {
     this._selectedIndex = -1;
     if (fillCommandID != 0)
     {
         this._fillCommand = new ToolBarComboBoxCommand(commandGroup, fillCommandID, 0, button);
     }
 }
Пример #2
0
 public void AddCommand(ComboBoxToolBarButton button, Type commandGroup, int commandID, int fillCommandID)
 {
     ToolBarComboBoxCommand command = new ToolBarComboBoxCommand(commandGroup, commandID, fillCommandID, button);
     button.Command = command;
     this._toolBarButtons.Add(button);
     this.AddCommand(command);
 }