public void SetTransport(ConsignmentItem item) { switch (item.Type) { case CommodityType.FrozenFood: Refrigerator.Commodities.Add(item); break; case CommodityType.Food: Semitrailer.Commodities.Add(item); break; case CommodityType.DomesticChemistry: Coupling.Commodities.Add(item); break; case CommodityType.BuildingMaterials: OpenSideTruck.Commodities.Add(item); break; default: Semitrailer.Commodities.Add(item); break; } }
public void SetTransport (ConsignmentItem item) { switch (item.Type) { case CommodityType.FrozenFood: Refrigerator.Commodities.Add(item); break; case CommodityType.Food: Semitrailer.Commodities.Add(item); break; case CommodityType.DomesticChemistry: Coupling.Commodities.Add(item); break; case CommodityType.BuildingMaterials: OpenSideTruck.Commodities.Add(item); break; default: Semitrailer.Commodities.Add(item); break; } }