private void Board_Executed(object sender, ExecutedRoutedEventArgs e)
{
var board = new Board {Owner = this};
Hide();
var result = board.ShowDialog();
if (result.HasValue && result.Value)
{
// If Close
Environment.Exit(0);
}
else if (result.HasValue)
{
#region If Backbutton or Stop Clicked
if (board.ExitArg == ExitAction.Recorded)
{
var editor = new Editor { ListFrames = board.ListFrames };
GenericShowDialog(editor);
return;
}
Show();
#endregion
}
}