void LoadUseRemindComplete(object sender, EventArgs e) { UserRemindEntityDicationary.Clear(); LoadOperation loadOperation = sender as LoadOperation; foreach (user_remind user_remind in loadOperation.Entities) { UserRemindEntity lUserRemindEntity = new UserRemindEntity(); lUserRemindEntity.UserRemind = user_remind; lUserRemindEntity.Update(); UserRemindEntityDicationary.Add(lUserRemindEntity.ManufactureNumber, lUserRemindEntity); } LoadOperation<ProductManager.Web.Model.project> LoadOperationProject = productDomainContext.Load<ProductManager.Web.Model.project>(productDomainContext.GetProjectQuery()); LoadOperationProject.Completed += loadOperationProject_Completed; }
void LoadUseRemindComplete(object sender, EventArgs e) { UserRemindEntityDicationary.Clear(); LoadOperation loadOperation = sender as LoadOperation; foreach (user_remind user_remind in loadOperation.Entities) { UserRemindEntity lUserRemindEntity = new UserRemindEntity(); lUserRemindEntity.UserRemind = user_remind; lUserRemindEntity.Update(); UserRemindEntityDicationary.Add(lUserRemindEntity.ManufactureNumber, lUserRemindEntity); } App app = Application.Current as App; LoadOperation<user_project> loadOperationUserProject = ProductDomainContext.Load<user_project>(ProductDomainContext.GetUserProjectQuery(app.UserInfo.UserID)); loadOperationUserProject.Completed += LoadUserProjectComplete; }