public static void MainMenu()
        {
            Console.WriteLine("What would you like to do? 1. Register a contestant 2. Start a Sweepstakes");
            string menuOption = Console.ReadLine();

            switch (menuOption)
            {
            case "1":
                Contestant.NewContestant();
                break;

            case "2":
                Sweepstakes.StartSweepstakes();
                break;

            default:
                MainMenu();
                break;
            }
        }
예제 #2
0
 public void PrintContestantInfo(Contestant contestant)
 {
     Console.WriteLine(contestant);
 }
예제 #3
0
 public void RegisterContestant(Contestant contestant)
 {
     contestants.Add(contestant.regNumber, contestant);
 }