public void copy(BillItemLine line) { itemName = line.itemName; desc = line.desc; quantity = line.quantity; cost = line.cost; className = line.className; }
public void updateItemLine(string itemName, BillItemLine line) { foreach (BillItemLine l in itemLines) { if (l.ItemName == itemName) { l.copy(line); break; } } }
public void addItemLine(BillItemLine line) { itemLines.Add(line); }