public void onEditOrderWithFood(
     OrderWithFood orderWithFood
     )
 {
     BtnAccept.Visibility = Visibility.Visible;
     BtnCancel.Visibility = Visibility.Visible;
 }
예제 #2
0
 public void onRemoveOrderWithFood(
     OrderWithFood orderWithFood
     )
 {
     listViewOrderWithFood.Items.Remove(orderWithFood);
     checkAndAddFoodIdToComboBox(orderWithFood._foodWithOrder.FoodId);
     updateAcceptButtonState();
 }
        public void onRemoveOrderWithFood(
            OrderWithFood orderWithFood
            )
        {
            BtnAccept.Visibility = Visibility.Visible;
            BtnCancel.Visibility = Visibility.Visible;

            listViewOrderWithFood.Items.Remove(orderWithFood);
            checkAndAddFoodIdToComboBox(orderWithFood._foodWithOrder.FoodId);
        }
        public void reloadLVOrderWithFood()
        {
            listViewOrderWithFood.Items.Clear();
            var order = OrderManager.getInstance().OrderList[OrderId];

            foreach (FoodWithOrder foodWithOrder in order.FoodWithOrders)
            {
                var newItem = new OrderWithFood(foodWithOrder, this);
                listViewOrderWithFood.Items.Add(newItem);
                if (orderHistoryTab != null)
                {
                    newItem.BtnRemove.Visibility       = Visibility.Hidden;
                    newItem.TextBoxQuantity.IsReadOnly = true;
                }
            }
        }
예제 #5
0
 public void onEditOrderWithFood(
     OrderWithFood orderWithFood
     )
 {
     updateAcceptButtonState();
 }