Пример #1
0
        public void RepromptSweepStakes()
        {
here:
            Console.WriteLine("Would you like to run another SweepStakes?");
            Console.WriteLine("1) YES\n2) NO\n");
            MarketingRepromtResponse = Console.ReadLine().ToLower();

            if (MarketingRepromtResponse == "1")
            {
                manager.InsertSweepStakes(SweepStakes);
                Console.Clear();
                SubProgram subProgram = new SubProgram();
                subProgram.SelectManagerType();
                subProgram.marketing.RunSweepStakes();
            }
            else if (MarketingRepromtResponse == "2")
            {
                Console.Clear();
                Console.WriteLine("Okay, have a nice day!");
                Console.ReadLine();
                return;
            }
            else
            {
                Console.WriteLine("Invalid Entry. Please try again");
                Console.ReadLine();
                goto here;
            }
        }
        public SweepStakes CreateSweepStakes()
        {
            SweepStakes sweepStakes = new SweepStakes();

            manager.InsertSweepStakes(sweepStakes);
            return(sweepStakes);
        }
Пример #3
0
        public void CreateSweepStakes()
        {
            string     sweepStakesName = UserInterface.GetSweepStakesName();
            SweepStake sweepStake      = new SweepStake(sweepStakesName);

            //Then insert it using manager
            _manger.InsertSweepStakes(sweepStake);
        }
 public void CreateSweepstakes()
 { 
     Sweepstakes sweepstake = new Sweepstakes(sweepstakesName);            
     PickAmountOfContestants(sweepstake);
     sweepstake.PrintContestentInfo();
     manager.InsertSweepStakes(sweepstake);
     if(UserInterface.DecisionToCreateMoreSweepstakes() == "yes")
     {                
         CreateSweepstakes();
     }
     else if (UserInterface.DecisionToCreateMoreSweepstakes() == "no")
     {
         GrabSweepstakes();
     }
     
 }
Пример #5
0
        //member methods
        public void CreateSweepStake()
        {
            SweepStakes sweepStakes = new SweepStakes(UserInterface.GetUserInputFor("What would you like to call your Sweepstakes?"));

            manager.InsertSweepStakes(sweepStakes);
        }
Пример #6
0
        public void SweepStakes()
        {
            SweepStakes sweepStakes = new SweepStakes("enter name");

            manager.InsertSweepStakes(sweepStakes);
        }
Пример #7
0
        public void CreateSweepStakes()
        {
            SweepStakes sweepStakes = new SweepStakes(Name);

            manager.InsertSweepStakes(sweepStakes);
        }