Exemplo n.º 1
0
 private void context_GetListCompleted(object siurce, GetListAsyncCompletedEventArgs e)
 {
     try
     {
         DataContext.GetListCompleted -= context_GetListCompleted;
         if (e.Cancelled)
         {
             return;
         }
         if (e.Error != null)
         {
             Parent.OnProgressChanged(new ProgressChangedEventArgs(0, String.Format("Exception {0} at m_DataContext.GetListAsync", e.Error.Message)));
         }
         DisposalRequest _Dr = DisposalRequest.Create(e.Result <CustomsWarehouse>(), m_BatchGroup, (x, y) => Parent.RaisePropertyChanged(y));
         Parent.Add(_Dr);
         _Dr.AutoCalculation = true;
     }
     catch (Exception _ex)
     {
         Parent.OnProgressChanged(new ProgressChangedEventArgs(0, String.Format("Exception {0} at context_GetListCompleted", _ex)));
     }
     DoNext();
 }