示例#1
0
        private void UserWins()
        {
            player.EndGame();
            string message = "WOW! You Won in " + player.GetTime() + "!\n\n Enter your name to save your time!";

            if (inProgress)
            {
                gameBoard.RevealBoard(true);
                UpdatePictures();
                string input = Microsoft.VisualBasic.Interaction.InputBox(message, "Winner!", "", -1, -1);
                if (input.Length > 0)
                {
                    player.PlayerName = input;
                    saveData.SaveGameData(player);
                }
            }
            inProgress = false;
        }