EndGame() public method

public EndGame ( ) : void
return void
Exemplo n.º 1
0
        private void EndGame(string lastWords)
        {
            _game.EndGame();

            foreach (Button button in _gameButtons)
            {
                button.Enabled   = false;
                button.BackColor = Color.Silver;
            }

            Invalidate();
            MessageBox.Show(lastWords, "Game over.");
        }