Esempio n. 1
0
        /// <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();
            }
        }
Esempio n. 2
0
        /// <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();
            }
        }