//constructor
 public SweepstakesStackManager()
 {
     myStack     = new Stack();
     contestants = new Contestant();
 }
示例#2
0
 public void PrintContestantInfo(Contestant contestant)
 {
     UserInterface.DisplayContestantInfo(contestant.FirstName + contestant.LastName);
 }
示例#3
0
 //Constructor
 public SweepstakesQueueManager()
 {
     myQueue     = new Queue();
     contestants = new Contestant();
 }
示例#4
0
        //member methods

        public void RegisterContestant(Contestant contestant)
        {
            contestant.RegistrationNumber = contestants.Count;
            contestants.Add(contestant.RegistrationNumber, contestant);
        }