Paint.PaintApp.CreateToolbox C# (CSharp) Method

CreateToolbox() protected method

Creates the toolbox.
protected CreateToolbox ( ) : IToolBox
return IToolBox
        protected override IToolBox CreateToolbox()
        {
            this.paintToolBox = new PaintToolBox(this.ToolboxLayoutDefinition, this.GraphicsDisplay, this.DeviceScale);

            this.paintToolBox.ExitSelected += (sender, e) =>
            {
                this.InitiateShutdown();
            };

            this.paintToolBox.RedoSelected += (sender, e) =>
            {
                this.pictureStateManager.Redo();
            };

            this.paintToolBox.UndoSelected += (sender, e) =>
            {
                this.pictureStateManager.Undo();
            };

            return this.paintToolBox;
        }