public ConfigFolderNode LoadSubFolder(ConfigFileNode parent, IVirtualFolder folder)
 {
     foreach (var holder in CommonSpace.GetAllAddons())
     {
         var hnd  = (IConfigNodeHandler)holder.InstanceModel;
         var node = hnd.LoadSubFolder(parent, folder);
         if (node != null)
         {
             return(node);
         }
     }
     return(null);
 }
Esempio n. 2
0
 public virtual ConfigFileNode LoadSubFile(ConfigFileNode parent, IVirtualFile file)
 {
     foreach (var fld in m_subFiles)
     {
         if (file.PathStarts(fld.Folder + "/") && file.NameEnds(fld.FileExtension))
         {
             return(new ConfigFileNode(parent, file)
             {
                 _Title = fld.Title,
                 _Image = fld.Image,
             });
         }
     }
     return(null);
 }
Esempio n. 3
0
 public virtual ConfigFolderNode LoadSubFolder(ConfigFileNode parent, IVirtualFolder folder)
 {
     foreach (var fld in m_subFolders)
     {
         if (folder.PathStarts(fld.Folder + "/") && folder.NameEnds("." + fld.SubFolderName))
         {
             return(new ConfigFolderNode(parent, folder)
             {
                 _Title = fld.Title ?? folder.Name,
                 _Image = fld.Image,
             });
         }
     }
     return(null);
 }