Exemplo n.º 1
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);
 }
Exemplo n.º 2
0
 public virtual ConfigFileNode LoadFile(ITreeNode parent, IVirtualFile file)
 {
     foreach (var frec in m_files)
     {
         if (file.PathStarts(frec.Folder + "/") && file.GetExtension() == frec.Extension)
         {
             return(new ConfigFileNode(parent, file)
             {
                 _Title = file.Name,
                 _Image = frec.Image,
                 AutoSubFiles = frec.AutoSubFile,
             });
         }
     }
     return(null);
 }