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;
}