예제 #1
0
 public static void DisplayEmail(Contestant contestant)
 {
     Console.WriteLine(contestant.EmailAddress);
     Console.ReadLine();
 }
예제 #2
0
 public static void DisplayLastName(Contestant contestant)
 {
     Console.WriteLine(contestant.LastName);
     Console.ReadLine();
 }
예제 #3
0
 public static void GetEmail(Contestant contestant)
 {
     Console.WriteLine("Please enter in your email address");
     contestant.EmailAddress = Console.ReadLine();
 }
예제 #4
0
 public static void GetLastName(Contestant contestant)
 {
     Console.WriteLine("Please enter your last name.");
     contestant.LastName = Console.ReadLine();
 }
예제 #5
0
 public void PrintContestantInfo(Contestant contestant)
 {
     UI.DisplayFirstName(contestant);
     UI.DisplayLastName(contestant);
     UI.DisplayEmail(contestant);
 }
예제 #6
0
 public void RegisterContestant(Contestant contestant)
 {
     Contestants.Add(contestant.RegistrationNumber, contestant);
     RegistrationNumberAssigned = contestant.RegistrationNumber;
     RegistrationNumberAssigned++;
 }