void loadOperationFileType_Completed(object sender, EventArgs e)
        {
            FileTypeEntityDictionary.Clear();
            FileTypeEntityList.Clear();

            LoadOperation loadOperation = sender as LoadOperation;

            foreach (ProductManager.Web.Model.filetype filetype in loadOperation.Entities)
            {
                FileTypeEntity fileTypeEntity = new FileTypeEntity();
                fileTypeEntity.FileType = filetype;
                fileTypeEntity.Update();
                FileTypeEntityDictionary.Add(fileTypeEntity.FileTypeID, fileTypeEntity);
                FileTypeEntityList.Add(fileTypeEntity);
            }

            this.prjectSource  = new EntityList <ProductManager.Web.Model.project>(this.ProductDomainContext.projects);
            this.projectLoader = new DomainCollectionViewLoader <ProductManager.Web.Model.project>(
                this.LoadProjectEntities,
                this.LoadOperationProjectCompleted);
            this.projectView = new DomainCollectionView <ProductManager.Web.Model.project>(this.projectLoader, this.prjectSource);
            using (this.CollectionProjectView.DeferRefresh())
            {
                //this.projectView.PageSize = 5;
                this.projectView.MoveToFirstPage();
            }
            this.IsBusy = false;
        }
        void fileTypeWindow_Closed(object sender, EventArgs e)
        {
            FileTypeWindow fileTypeWindow = sender as FileTypeWindow;

            if (fileTypeWindow.DialogResult == true)
            {
                FileTypeEntityList.Add(AddFileTypeEntity);
                systemManageDomainContext.filetypes.Add(AddFileTypeEntity.FileType);
                OnSaveCommand();
            }
        }
        void loadOperationFileType_Completed(object sender, EventArgs e)
        {
            FileTypeEntityList.Clear();
            LoadOperation loadOperation = sender as LoadOperation;

            foreach (ProductManager.Web.Model.filetype filetype in loadOperation.Entities)
            {
                FileTypeEntity fileTypeEntity = new FileTypeEntity();
                fileTypeEntity.FileType = filetype;
                fileTypeEntity.Update();
                FileTypeEntityList.Add(fileTypeEntity);
            }
            UpdateChanged("FileTypeEntityList");
            IsBusy = false;
        }
示例#4
0
        private void loadOperationFileType_Completed(object sender, EventArgs e)
        {
            FileTypeEntityList.Clear();

            LoadOperation loadOperation = sender as LoadOperation;

            foreach (Web.Model.filetype filetype in loadOperation.Entities)
            {
                FileTypeEntity lFileTypeEntity = new FileTypeEntity();
                lFileTypeEntity.FileType = filetype;
                lFileTypeEntity.Update();
                FileTypeEntityList.Add(lFileTypeEntity);
            }

            LoadOperation <DocumentManager.Web.Model.taxpayer> loadOperationTaxPayer =
                documentManagerContext.Load <DocumentManager.Web.Model.taxpayer>(documentManagerContext.GetTaxpayerQuery());

            loadOperationTaxPayer.Completed += loadOperationTaxPayer_Completed;
        }