Exemplo n.º 1
0
        public void validateSelection()
        {
            selection = Console.ReadLine().ToLower();

            if (selection != "1" && selection != "2" && selection != "3" && selection != "quit" && selection == "")
            {
                Console.WriteLine("That is not a valid input. Please try again...");
                validateSelection();

            }
            else if (selection == "1")
            {
                CourseInfo courseInfo = new CourseInfo();
                courseInfo.Info();
            }
            else if (selection == "2")
            {
                PlayRound playRound = new PlayRound();
                playRound.addRound();
            }
            else if (selection == "3")
            {
                ScoreLog scoreLog = new ScoreLog();
                scoreLog.printScores();
            }
            else
            {
                Console.WriteLine("Goodbye.");
            }
        }