Esempio n. 1
0
 public void UpdateSweepstakes()
 {
     for (int i = 0; i < numberOfSweepstakes; i++)
     {
         Sweepstakes currentSweep = GetSweepstakes();
         bool        updateSweep  = UI.UpdateCurrentSweepBool(currentSweep);
         if (updateSweep)
         {
             int newContestants = UI.NewContestants(currentSweep);
             for (int j = 0; j < newContestants; j++)
             {
                 Contestant newContestant = new Contestant();
                 currentSweep.RegisterContestant(newContestant);
             }
             PickWinners(currentSweep);
         }
     }
 }