Пример #1
0
        public void StopGame()
        {
            tmrGame.Stop();
            tmrTime.Stop();
            ResetField();

            //eastereggs
            if (GetPoints() == 284 && _numberBoxesHorizontal == 20 && _numberBoxesVertical == 10)
            {
                Eastereggs.Celia(this);
            }
            else if (GetPoints() > 9000)
            {
                Eastereggs.Over9000();
            }

            if (GetPoints() < _gameOverAt)
            {
                MessageBox.Show("Game Over!", "Game Over!", MessageBoxButtons.OK, MessageBoxIcon.Stop);
            }
            else
            {
                _editScore.SetScore(Convert.ToString(GetPoints()));
                _editScore.ShowDialog();
            }

            btnStart.Text = "Spiel starten";

            btnOptions.Enabled   = true;
            btnScoreList.Enabled = true;
        }