示例#1
0
        AddSubFolder(TFolderMetaData subFolderMetaData)
        {
            ComponentFolder <TId, TFolderMetaData, TComponentMetaData> subFolder =
                new ComponentFolder <TId, TFolderMetaData, TComponentMetaData>(subFolderMetaData);

            SubFolders.Add(subFolder);

            return(subFolder);
        }
示例#2
0
        public ComponentFolder <TId, TFolderMetaData, TComponentMetaData> GetOrAddFolder
        (
            TFolderMetaData subFolderMetaData
        )
        {
            ComponentFolder <TId, TFolderMetaData, TComponentMetaData> subFolder =
                FindSubFolder(subFolderMetaData.DisplayName) ?? AddSubFolder(subFolderMetaData);

            return(subFolder);
        }
 GetItemAndContainingFolder <TId, TFolderMetaData, TComponentMetaData>(this ComponentFolder <TId, TFolderMetaData, TComponentMetaData> folder, string componentName)
示例#4
0
     this ComponentFolder <TId, TFolderMetaData, TComponentMetaData> currentFolder,
     string locationUnderProgramData,
     Func <Assembly, ComponentFolder <TId, TFolderMetaData, TComponentMetaData>, ComponentFolder <TId, TFolderMetaData, TComponentMetaData> > assemblyFolderFactory,
     Type assemblyAttributeType
 )
 public static IEnumerable <IComponentIdWithDisplayMetadata <TId, TComponentMetaData> > GetAllNonFolderComponents <TId, TFolderMetaData, TComponentMetaData>(this ComponentFolder <TId, TFolderMetaData, TComponentMetaData> folder)
     where TId : INameContainer
     where TFolderMetaData : class, IComponentDisplayMetadata
     where TComponentMetaData : class, IComponentDisplayMetadata
 {
     return(folder.Descendants <IComponentMetaDataContainer, IComponentIdWithDisplayMetadata <TId, TComponentMetaData> > (ToChildren <TId, TFolderMetaData, TComponentMetaData>));
 }