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);
     }
 }
Beispiel #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);
 }