AddSubFolder(TFolderMetaData subFolderMetaData) { ComponentFolder <TId, TFolderMetaData, TComponentMetaData> subFolder = new ComponentFolder <TId, TFolderMetaData, TComponentMetaData>(subFolderMetaData); SubFolders.Add(subFolder); return(subFolder); }
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)
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>)); }