예제 #1
0
 /// <summary>
 /// Initializes the item list.
 /// </summary>
 private void InitializeKitchenOrderItemList()
 {
     try
     {
         _orderItemManager.GetList().Where(o => o.IsKitchenProcessCompleted != true).ToList().ForEach(x => {
             x.MarkAsChild();
             KitchenOrderItemList.Add(x);
             if (x.State == OrderItemState.Served || x.IsCancelled == true)
             {
                 x.MarkUpdated();
             }
         });
     }
     catch (Exception ex)
     {
         this.messageBoxService.ShowError(this.GetType().FullName + System.Reflection.MethodBase.GetCurrentMethod().Name + ": " + ex.Message);
     }
 }