Exemple #1
0
 public void AddSweepstakes()
 {
     howManySweepstakes = UserInterface.AskHowManySweepstakes();
     for (int i = 0; i < howManySweepstakes; i++)
     {
         AddContestants();
     }
 }
Exemple #2
0
        public static int AskHowManyContestants()
        {
            int number;

            Console.WriteLine("How many contestant will there be, please give a number!");
            bool answer = Int32.TryParse(Console.ReadLine(), out number);

            if (answer == false)
            {
                number = UserInterface.AskHowManySweepstakes();
            }
            else
            {
                return(number);
            }
            return(number);
        }