/// <summary> /// Exit Game /// </summary> void Exit() { MBox bx = new MBox("Exit?"); bx.StartPosition = FormStartPosition.CenterParent; var result = bx.ShowDialog(); if (result == System.Windows.Forms.DialogResult.Yes) { Application.Exit(); } }
/// <summary> /// Start new game /// </summary> void StartNewGame() { MBox bx = new MBox("Start new Game?"); bx.StartPosition = FormStartPosition.CenterParent; var result = bx.ShowDialog(); if (result == System.Windows.Forms.DialogResult.Yes) { this._board = new Board(); this.Invalidate(); } }