Beispiel #1
0
        public void RunProgram()
        {
            while ()
            {
                int num = UI.Menu();
                switch (num)
                {
                case 1:
                    MakeNewSweepstakes();
                    break;

                case 2:
                    RegisterNewContestant();
                    break;

                case 3:
                    UI.PickWinner();
                    PickWinner();
                    break;

                case 4:
                    UI.PreviousSweepstakes();
                    break;

                default:
                    Console.WriteLine("Please enter a valid response.(1,2,3,4)");
                    UI.Menu();
                    break;
                }
            }
        }