Exemple #1
0
        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (!Game.Started)
            {
                Game.StartNewGame();
            }
            else
            {
                if (!Game.Over)
                {
                    var res = MessageBox.Show(this, "Do you want to abort this game?", string.Empty, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                }

                Game.StartNewGame();
            }
        }