public void RegisterContestant(Contestant contestant)
 {
     keyId++;
     contestant.RegistrationNum = keyId;
     UI.GetUserInfo(contestant.FirstName);
     UI.GetUserInfo(contestant.LastName);
     UI.GetUserInfo(contestant.EmailAddress);
     UI.GiveUserKeyID(keyId);
     contestants.Add(keyId, contestant);
     RandomPrize();
 }
Beispiel #2
0
 public Contestant()
 {
     this.FirstName    = UI.GetUserInfo("Please enter your first name");
     this.LastName     = UI.GetUserInfo("Please enter your Last name");
     this.EmailAddress = UI.GetUserInfo("Please enter your e-mail address");
 }
Beispiel #3
0
        public void CreateSweepstakes()
        {
            Sweepstakes sweepstakes = new Sweepstakes(UI.GetUserInfo("Enter sweepstakes name"));

            sweepstakesManager.InsertSweepstakes(sweepstakes);
        }