public void addOrder(string title, int quantity, int orderid) { WarehouseOrder order = new WarehouseOrder(); order.id = orderid; order.quantity = quantity; order.title = title; orders.Add(order); if (gui != null) { gui.addWareHouseOrder(order); } }
public void GetStoreWarehouseOrder(WarehouseOrder order) { client.receiveStock(order.title, order.quantity, order.id); }