public InventoryForm() { InitializeComponent(); inventory.addItem(1, "Cookies", 2.51, 25); inventory.addItem(2, "Crackers", 3.11, 30); inventory.addItem(3, "Soda", 2.99, 45); inventory.displayInventory(itemList); }
public InventoryForm() { InitializeComponent(); inventory.addItem(1, "Item 1", 4.51, 3); inventory.addItem(2, "Item 2", 13.11, 3); inventory.addItem(3, "Item 3", 2.22, 8); inventory.displayInventory(itemList); }