Exemplo n.º 1
0
 private void LoadOperationProductPartTimeCompleted(LoadOperation <ProductManager.Web.Model.product_part_time> aLoadOperation)
 {
     ProductPartTimeEntityList.Clear();
     foreach (ProductManager.Web.Model.product_part_time product_part_time in aLoadOperation.Entities)
     {
         ProductPartTimeEntity productPartTimeEntity = new ProductPartTimeEntity();
         productPartTimeEntity.ProductPartTime = product_part_time;
         productPartTimeEntity.Update();
         ProductPartTypeEntity productPartTypeEntity;
         if (ProductPartTypeDictionary.TryGetValue(productPartTimeEntity.ProductPartID, out productPartTypeEntity))
         {
             productPartTimeEntity.ProductPartName = productPartTypeEntity.ProductPartTypeName;
         }
         ProductPartTimeEntityList.Add(productPartTimeEntity);
     }
     if (aLoadOperation.TotalEntityCount != -1)
     {
         this.productPartTimeView.SetTotalItemCount(aLoadOperation.TotalEntityCount);
     }
     UpdateChanged("ProductPartTimeEntityList");
     this.IsBusy = false;
 }