Пример #1
0
        public static void CheckGameOver()
        {
            int count = 0;

            for (int i = 0; i < dollarButtons.Length; i++)
            {
                if (dollarButtons[i].Enabled == false)
                {
                    count++;
                }
            }

            if (count == 25)
            {
                theAnswerForm.Close();
                SerializeWinner();
                CreateResultsForm();
            }
            else
            {
                theGameBoard.DisplayPlayerInfo();
                theGameBoard.Show();
                theAnswerForm.Close();
            }
        }