Beispiel #1
0
 public static void LoadFileSystem(EasyPropertiesNode pnode, TMFileSystem fileSystem)
 {
     foreach (EasyPropertiesNode node in pnode.GetChildProperties())
     {
         TMRootFolder rootFolder = new TMRootFolder((LURootFolderType)Enum.Parse(typeof(LURootFolderType), node.Name));
         LoadFolders(node, rootFolder);
         LoadFiles(node, rootFolder);
         fileSystem.Add(rootFolder);
     }
 }
Beispiel #2
0
 private static void LoadFolders(EasyPropertiesNode node, TMFolder folder)
 {
     EasyPropertiesNode[] childProps = node.GetChildProperties();
     foreach (EasyPropertiesNode childProp in childProps)
     {
         TMFolder tmFolder = new TMFolder(childProp.Name, folder);
         LoadFolders(childProp, tmFolder);
         LoadFiles(childProp, tmFolder);
         folder.Folders.Add(tmFolder);
     }
 }