public InventoryItemType GetIventoryItemTypeById(int inventoryItemTypeId) { InventoryItemType result = null; foreach (InventoryItemType iit in Program.building.GetInventoryItemTypes()) { if (iit.GetId() == inventoryItemTypeId) { result = iit; break; } } return(result); }
public void AddInventoryItemType(string name, double rent) { InventoryItemType newItt = new InventoryItemType(name, rent); inventoryItemTypes.Add(newItt); }