コード例 #1
0
 public void GetOrderInfo()
 {
     this.SmallSodaCount = Questions.AskForInteger("How many small sodas?");
     this.LargeSodaCount = Questions.AskForInteger("How many large sodas?");
     this.HotDogCount    = Questions.AskForInteger("How many hot dogs?");
     this.PopCornCount   = Questions.AskForInteger("How many popcorns?");
     this.CandyCount     = Questions.AskForInteger("How many candies?");
 }
コード例 #2
0
 public void GetTicketOrder()
 {
     this.ChildTicketCount  = Questions.AskForInteger("How many child tickets would you like?");
     this.AdultTicketCount  = Questions.AskForInteger("How many adult tickets would you like?");
     this.SeniorTicketCount = Questions.AskForInteger("How many senior tickets would you like?");
     this.TicketTypeMatinee = Questions.AskForBool("Will these be matinee tickets? (type 'yes' or 'no')");
     this.TotalTicketCount  = ChildTicketCount + AdultTicketCount + SeniorTicketCount;
 }