//member methods void IntroToUser() { string register; Console.WriteLine("Welcome to the sweepstakes! Are you a participant or manager?"); Console.WriteLine("Please choose ", "user", " or ", "manager"); register = Console.ReadLine().ToLower(); Console.ReadKey(); switch (register) { case "participant": Contestant contestant = new Contestant(); break; case "manager": ChooseWhichMethod(); break; } }
//member methods static void IntroToContestant() { string register; Console.WriteLine("Welcome to the sweepstakes! Would you like to register for the sweepstakes?"); Console.WriteLine("Please choose ", "yes", " or ", "no"); register = Console.ReadLine().ToLower(); Console.ReadKey(); switch (register) { case "yes": Contestant contestant = new Contestant(); break; case "no": Console.WriteLine("Thank you for your participation"); break; } }
//member methods public void RegisterContestant(Contestant contestant) { participants.Add(contestant.registrationNumber, contestant); }