Exemple #1
0
        protected FileSystemItem FindFileItem(FileManagerFile file)
        {
            FileSystemItem fileItem = FindFolderItem(file.Folder);

            if (fileItem == null)
            {
                return(null);
            }
            return(ProcessBlueprintDataProvider.GetAll().FindAll(item => (int)item.ParentId == fileItem.FileId && !item.IsFolder && item.Name == file.Name).FirstOrDefault());
        }
Exemple #2
0
        public override IEnumerable <FileManagerFile> GetFiles(FileManagerFolder folder)
        {
            if (string.IsNullOrEmpty(folder.Name.ToString()))
            {
                return(null);
            }
            FileSystemItem folderItem = FindFolderItem(folder);

            return(from item in ProcessBlueprintDataProvider.GetAll()
                   where !item.IsFolder && item.ParentId == folderItem.FileId
                   select new FileManagerFile(this, folder, item.Name));
        }
Exemple #3
0
 protected void RefreshFolderCache()
 {
     this.folderCache           = ProcessBlueprintDataProvider.GetAll().FindAll(x => x.IsFolder).ToDictionary(x => x.FileId);
     this.rootFolderDisplayName = (from folderItem in FolderCache.Values where folderItem.FileId == RootItemId select folderItem.Name).First();
 }