Пример #1
0
        public void RunSweepstake(Sweepstakes newSweepstake)
        {
            SetupSweepstake(newSweepstake);

            Console.WriteLine(newSweepstake.PickWinner() + " is the winner!");
            Console.WriteLine("An email will be sent to their inbox at (" + newSweepstake.GetWinnerAddress() + "), notifying them of their success in the sweepstake.");
            newSweepstake.SendMail(newSweepstake.GetWinnerAddress(), newSweepstake.PickWinner());
            Console.WriteLine("Thank you for participating! Press ENTER to exit the program, or to start the next sweepstake.");
            Console.ReadLine();
            Console.Clear();
        }