Esempio n. 1
0
 public Truck(Storage storage, ListBox deliverList, Label truckStatus, Label truckLimitItems, Label truckLimitWeight, Label truckLimitVolume, float maxVolume, float maxWeight, float maxItems)
 {
     this.DeliverList = deliverList;
     this.TruckStorage = new List<FoodItem>();
     this.Storage = storage;
     this.MaxVolume = maxVolume;
     this.MaxWeight = maxWeight;
     this.MaxItems = maxItems;
     this.StatusLabel = truckStatus;
     this.TruckLimitItemsLabel = truckLimitItems;
     this.TruckLimitVolumeLabel = truckLimitVolume;
     this.TruckLimitWeightLabel = truckLimitWeight;
 }
Esempio n. 2
0
 public Factory(Storage storage, Label statusLabel)
 {
     this.Storage = storage;
     this.StatusLabel = statusLabel;
     InitFoodItems();
 }