コード例 #1
0
        public void LoadData()
        {
            IsBusy = true;
            systemManageDomainContext = new SystemManageDomainContext();
            systemManageDomainContext.PropertyChanged -= systemManageDomainContext_PropertyChanged;
            systemManageDomainContext.PropertyChanged += systemManageDomainContext_PropertyChanged;
            FileTypeEntityList.Clear();
            selectFileTypeEntity = null;
            LoadOperation <ProductManager.Web.Model.filetype> loadOperationDepartment =
                systemManageDomainContext.Load <ProductManager.Web.Model.filetype>(systemManageDomainContext.GetFiletypeQuery());

            loadOperationDepartment.Completed += loadOperationFileType_Completed;
        }
コード例 #2
0
        void loadOperationUser_Completed(object sender, EventArgs e)
        {
            UserEntityDictionary.Clear();
            LoadOperation loadOperation = sender as LoadOperation;

            foreach (ProductManager.Web.Model.user user in loadOperation.Entities)
            {
                UserEntity userEntity = new UserEntity();
                userEntity.User = user;
                userEntity.Update();
                UserEntityDictionary.Add(userEntity.UserID, userEntity);
            }

            LoadOperation <ProductManager.Web.Model.filetype> loadOperationFiletype =
                SystemManageDomainContext.Load <ProductManager.Web.Model.filetype>(SystemManageDomainContext.GetFiletypeQuery());

            loadOperationFiletype.Completed += loadOperationFileType_Completed;
        }