Beispiel #1
0
        private void FillOrderViewByOrderID(int orderID) //fills the order item list
        {
            Order_Service    orderserv     = new Order_Service();
            List <OrderItem> orderitemlist = orderserv.GetByID(orderID);

            EditView.Items.Clear();
            foreach (OrderItem item in orderitemlist)
            {
                ListViewItem li = new ListViewItem(item.orderID.ToString());
                li.SubItems.Add(item.orderItems_id.ToString());
                li.SubItems.Add(item.menuItemID.ToString());
                li.SubItems.Add(item.amount.ToString());
                li.SubItems.Add(item.status.ToString());
                li.SubItems.Add(item.menuItemName);
                EditView.Items.Add(li);
            }
        }