Ejemplo n.º 1
0
 private void RefreshCustomerEarMoldOrderCollection(bool doAsync = false)
 {
     try
     {
         if (doAsync)
         {
             Task.Factory.StartNew(() =>
             {
                 var items = CustomerAction.GetCustomerEarMoldOrderList(this.DBConnectionString, this.Entity);
                 if (items != null && items.InternalList.Any())
                 {
                     this.Entity.CustomerEarMoldOrderCollection = items.InternalList;
                 }
             });
         }
         else
         {
             var items = CustomerAction.GetCustomerEarMoldOrderList(this.DBConnectionString, this.Entity);
             if (items != null && items.InternalList.Any())
             {
                 this.Entity.CustomerEarMoldOrderCollection = items.InternalList;
             }
         }
     }
     catch (Exception exception)
     {
         NLogLogger.LogError(exception, TitleResources.Error, ExceptionResources.ExceptionOccured,
                             ExceptionResources.ExceptionOccuredLogDetail);
     }
 }
Ejemplo n.º 2
0
 private void RefreshCustomerEarMoldOrderCollection()
 {
     Task.Factory.StartNew(() =>
     {
         var items = CustomerAction.GetCustomerEarMoldOrderList(this.DBConnectionString, this.Entity);
         if (items != null && items.InternalList.Any())
         {
             this.Entity.CustomerEarMoldOrderCollection = items.InternalList;
         }
     });
 }