public ProductBase(StockBox stockBox, string name, double price, string type, int weight, string brand)
 {
     MyStockBox = stockBox;
     Name       = name;
     Price      = price;
     Type       = type;
     Weight     = weight;
     Brand      = brand;
     MyStockBox.AddItem(this);
 }
 public Vegetables(StockBox stockBox, string name, double price, string type, int weight, string brand) : base(stockBox, name, price, type, weight, brand)
 {
 }
Esempio n. 3
0
 public Lemonade(StockBox stockBox, string name, double price, string type, int weight, string brand) : base(stockBox, name, price, type, weight, brand)
 {
 }
Esempio n. 4
0
 public void RemoveFromStockBox(StockBox stb)
 {
     RemovedStockBoxes.Remove(stb);
 }
Esempio n. 5
0
 public void AddStockBox(StockBox stb)
 {
     MyStockBoxes.Add(stb);
 }