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)
 {
 }
Exemple #3
0
 public Lemonade(StockBox stockBox, string name, double price, string type, int weight, string brand) : base(stockBox, name, price, type, weight, brand)
 {
 }
Exemple #4
0
 public void RemoveFromStockBox(StockBox stb)
 {
     RemovedStockBoxes.Remove(stb);
 }
Exemple #5
0
 public void AddStockBox(StockBox stb)
 {
     MyStockBoxes.Add(stb);
 }