Esempio n. 1
0
        public void RunSweepstakes()
        {
            //HASA userinterface tHerefOre
            UserInterface newUI = new UserInterface();

            newUI.EnterOrEnd();
            if (newUI.response == "Y" || newUI.response == "yes" || newUI.response == "YES" || newUI.response == "yes" || newUI.response == "y")
            {
                while (enter == true)
                {
                    newUI.GetFirstName();
                    newUI.GetLastName();
                    newUI.GetEmailAddress();
                    newUI.AssignRegistrationNumber();
                    newUI.NewContestant(newUI.fNameInput, newUI.lNameInput, newUI.emailInput, newUI.regNumber);
                    RegisterContestant(newUI.newContestant);
                    Enter();
                }
                if (enter == false)
                {
                    newUI.EndSweepstakes();
                    EndSweepstakes(newUI);
                }
            }
            else
            {
                newUI.EndSweepstakes();
                EndSweepstakes(newUI);
            }
        }