Paint.PaintToolBox.AddRedoButton C# (CSharp) Method

AddRedoButton() private method

Adds the redo button.
private AddRedoButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void
buttonLayout Paint.ToolboxLayout.ToolboxLayoutDefinitionStandardToolsButtonsButton /// Button layout. ///
return void
        private void AddRedoButton(ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout)
        {
            this.redoButton = new Button(
                this.GraphicsDisplay,
                new ButtonDefinition(buttonLayout, this.Scale, new ImageType[] { ImageType.RedoButton }, ImageType.RedoButtonDisabled));

            this.redoButton.Enabled = false;
            this.redoButton.ButtonPressed += (sender, e) =>
            {
                this.OnRedoSelected(EventArgs.Empty);
            };

            this.AddTool(this.redoButton);
        }