コード例 #1
0
 public Size(AStore store, decimal p, int i, string n, ItemType t)
 {
     Store     = store;
     Price     = p;
     Inventory = i;
     PizzaType = new APizzaComponent(n, t);
 }
コード例 #2
0
 public Size(AStore store, decimal p, int i, APizzaComponent apc)
 {
     Store     = store;
     Price     = p;
     Inventory = i;
     PizzaType = apc;
 }
コード例 #3
0
 public Crust(AStore store, decimal p, int i, APizzaComponent apc)
 {
     CheeseStuffed = false;
     StuffedPrice  = 1.50m;
     Store         = store;
     Price         = p;
     Inventory     = i;
     PizzaType     = apc;
 }
コード例 #4
0
 public Crust(AStore store, decimal p, int i, string n, ItemType t)
 {
     CheeseStuffed = false;
     StuffedPrice  = 1.50m;
     Store         = store;
     Price         = p;
     Inventory     = i;
     PizzaType     = new APizzaComponent(n, t);
 }
コード例 #5
0
 protected virtual void AddCrust(decimal p, int i, APizzaComponent apc)
 {
     CrustList.Add(new Crust(this, p, i, apc));
 }
コード例 #6
0
 protected virtual void AddSize(decimal p, int i, APizzaComponent apc)
 {
     SizeList.Add(new Size(this, p, i, apc));
 }
コード例 #7
0
 protected virtual void AddTopping(decimal p, int i, APizzaComponent apc)
 {
     ToppingsList.Add(new Topping(this, p, i, apc));
 }