コード例 #1
0
 static void Main(string[] args)
 {
     while (true) // Used to loop back to sweepstakesFactory to select another manager type if needed.
     {
         SweepstakesFactory sweepstakesFactory = new SweepstakesFactory();
         MarketingFirm      newFirm            = new MarketingFirm(sweepstakesFactory.DetermineManager(UserInterface.GetManagerType()));
         newFirm.DetermineMarketFirmAction();
     }
 }
コード例 #2
0
 static void Main(string[] args)
 {
     while (true)
     {
         SweepstakesFactory sweepstakesFactory = new SweepstakesFactory();
         MarketingFirm      newFirm            = new MarketingFirm(sweepstakesFactory.DetermineManager(UserInterface.GetManagerType()));
         newFirm.DetermineMarketFirmAction();
     }
 }