private void AddRestartButton(ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout)
{
var restartButton = new Button(
this.GraphicsDisplay,
new ButtonDefinition(buttonLayout, this.Scale, new ImageType[] { ImageType.RestartButton }, null));
restartButton.ButtonPressed += (sender, e) =>
{
// we are restarting so we if we were previosly paused or disabled then reset to playing...
this.playButton.State = 1;
this.playButton.Enabled = true;
this.OnRestartSelected(EventArgs.Empty);
};
this.AddTool(restartButton);
}