Exemplo n.º 1
0
 private void LoadOrderDetails(RegularOrder order)
 {
     try
     {
         lblOrderStatusText.Text   = EnumHelper.Parse <Constants.DeliveryStatus>(order.order_status).GetDescription();
         lblPaymentStatusText.Text = EnumHelper.Parse <Constants.PaymentStatus>(order.payment_status).GetDescription();
         tbItemsCount.Text         = order.total_quantity.ToString();
         tbOrderCost.Text          = CurrencyUtil.ToString(order.total_cost);
         dgvItemsList.DataSource   = _orderItemBusiness.GetByOrderId(order.id);
     }
     catch (Exception ex)
     {
         AppLogger.logError(this.ToString(), ex);
     }
 }