Example #1
0
 public void AddCakes(bool an, bool gr, bool we, bool ch, bool va, bool ba, bool t1, bool t2, bool t3)
 {
     cake = new Cake(an, gr, we, ch, va, ba, t1, t2, t3);
     lstCakes.Add(cake.ToString());
     Quantity   += 1;
     TotalPrice += cake.cakeType.GetPrice();
 }
Example #2
0
 public void AddCakes(int i)
 {
     cake = new Cake(i);
     lstCakes.Add(cake.ToString());
     Quantity   += 1;
     TotalPrice += cake.cakeType.GetPrice();
 }
Example #3
0
 //modified for lab 5
 public override string ToString()
 {
     return(Customer.ToString() + "\nYou have ordered " + NumOfCakes + Cake.ToString() +
            " for the total cost of " + CalculateCostWithTax().ToString("C"));
 }