Exemplo n.º 1
0
        public InventoryItemType GetIventoryItemTypeById(int inventoryItemTypeId)
        {
            InventoryItemType result = null;

            foreach (InventoryItemType iit in Program.building.GetInventoryItemTypes())
            {
                if (iit.GetId() == inventoryItemTypeId)
                {
                    result = iit;
                    break;
                }
            }
            return(result);
        }
Exemplo n.º 2
0
        public void AddInventoryItemType(string name, double rent)
        {
            InventoryItemType newItt = new InventoryItemType(name, rent);

            inventoryItemTypes.Add(newItt);
        }