private void ExecuteSelectOrderItemCommand(OrderItem item) { try { //if (SelectedOrder != null) //this.PopulateSelectedOrder(); //messageBoxService.ShowInformation("ExecuteSelectOrderItemCommand"); if (item != null && item.IsUpdated == true) { item.Acknowledge(); if (item.State == OrderItemState.OutOfKitchen) { return; } //messageBoxService.ShowInformation("ExecuteSelectOrderItemCommand"); // clear log on item // .... if (item.State == OrderItemState.Served || item.IsCancelled == true) { // update item in database for remove this item from this list next time //searchItem.IsOutOfKitchenProcess = true; _orderItemManager.SetOutOfKitchenProcess(item); } } } catch (Exception ex) { this.messageBoxService.ShowError(this.GetType().FullName + System.Reflection.MethodBase.GetCurrentMethod().Name + ": " + ex.Message); } }