private void LoadOperationProjectCompleted(LoadOperation <ProductManager.Web.Model.project> aLoadOperation) { ProjectEntityList.Clear(); UserProjectCount = 0; foreach (ProductManager.Web.Model.project project in aLoadOperation.Entities) { ProjectEntity projectEntity = new ProjectEntity(); projectEntity.Project = project; projectEntity.Update(); UserProjectEntity lUserProjectEntity; if (UserProjectEntityDictionary.TryGetValue(projectEntity.ManufactureNumber, out lUserProjectEntity)) { projectEntity.UserProjectEntity = lUserProjectEntity; projectEntity.SetIsUserProject(true); } if (IsUserProject && !projectEntity.IsUserProject) { continue; } ProjectEntityList.Add(projectEntity); UserProjectCount++; } if (aLoadOperation.TotalEntityCount != -1) { this.projectView.SetTotalItemCount(aLoadOperation.TotalEntityCount); } UpdateChanged("ProjectEntityList"); UpdateChanged("CollectionProjectView"); UpdateChanged("RecorderCount"); this.IsBusy = false; }
private void LoadOperationProjectCompleted(LoadOperation <ProductManager.Web.Model.project> aLoadOperation) { ProjectEntityList.Clear(); foreach (ProductManager.Web.Model.project project in aLoadOperation.Entities) { ProjectEntity projectEntity = new ProjectEntity(); projectEntity.Project = project; projectEntity.Update(); ProjectEntityList.Add(projectEntity); } }
private void LoadOperationProjectCompleted(LoadOperation <ProductManager.Web.Model.project> aLoadOperation) { ProjectEntityList.Clear(); foreach (ProductManager.Web.Model.project project in aLoadOperation.Entities) { ProjectEntity projectEntity = new ProjectEntity(); projectEntity.Project = project; projectEntity.Update(); ProjectEntityList.Add(projectEntity); } if (aLoadOperation.TotalEntityCount != -1) { this.projectView.SetTotalItemCount(aLoadOperation.TotalEntityCount); } UpdateChanged("ProjectEntityList"); UpdateChanged("CollectionProjectView"); this.IsBusy = false; }