Beispiel #1
0
        private void getHierarchy(FolderTempClass Res, List <FolderListClass> _folders, List <FolderTempClass> _folderObject, string token)
        {
            _folders.Add(new FolderListClass {
                id = Res.ParentID + "/" + Res.FolderName + ":/children", text = Res.FolderName
            });

            if (Res.Childcount > 1)
            {
                foreach (var res in ResFromFolder(_folderObject, Res.ParentID + "/" + Res.FolderName + ":/children", token))
                {
                    List <FolderListClass> _tempList = (from k in _folders where k.id == Res.ParentID + "/" + Res.FolderName + ":/children" select k.children).Single();
                    getHierarchy(res, _tempList, _folderObject, token);
                }
            }
        }
Beispiel #2
0
 private static void getHierarchyFiles(FolderTempClass Res, List <string> _files, string token)
 {
     _files.Add(Res.FolderName);
 }