Paint.PaintToolBox.AddButton C# (CSharp) Méthode

AddButton() protected méthode

Creates all the buttons and adds them to our list of controls
protected AddButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void
buttonLayout Paint.ToolboxLayout.ToolboxLayoutDefinitionStandardToolsButtonsButton
Résultat void
        protected override void AddButton(ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout)
        {
            switch (buttonLayout.ButtonType)
            {
                case ToolboxLayoutDefinitionStandardToolsButtonsButtonButtonType.Undo:
                    this.AddUndoButton(buttonLayout);
                    break;

                case ToolboxLayoutDefinitionStandardToolsButtonsButtonButtonType.Redo:
                    this.AddRedoButton(buttonLayout);
                    break;

                default:
                    base.AddButton(buttonLayout);
                    break;
            }
        }