Пример #1
0
        public IFolder OpenSubFolder(string name)
        {
            if (SubFolderCount <= 0)
            {
                return(default(IFolder));
            }

            return(SubFolders.FirstOrDefault(folder => folder.Name.CompareTo(name) == 0));
        }
Пример #2
0
 public ComponentFolder <TId, TFolderMetaData, TComponentMetaData> FindSubFolder(string subFolderName)
 {
     return(SubFolders
            .FirstOrDefault(f => f.MetaData.DisplayName == subFolderName));
 }
Пример #3
0
 public KmlFolder GetFolderByName(string name) => SubFolders.FirstOrDefault(f => f.Name == name);
Пример #4
0
 public string GetSubDirectory(string subfolder) => SubFolders.FirstOrDefault(sf => sf.Contains(subfolder));
Пример #5
0
 public KmlFolder GetFolder(string cn) => SubFolders.FirstOrDefault(f => f.CN == cn);