Пример #1
0
 private void LblTime_MouseHover(object sender, EventArgs e)
 {
     if (lblTime.Text.TrimEnd(_charsToRemove) == "284" && !tmrGame.Enabled)
     {
         Eastereggs.IHeartC(this);
     }
 }
Пример #2
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;
        }