public FileExtension(String iExtension, String iShortDescription, String iLongDescription = "", FileExtensionGroup iGroup = null) { Extension = iExtension; ShortDescription = iShortDescription; LongDescription = iLongDescription; Group = iGroup; }
public static FileExtensionCollection GetExtensionGroup(this FileExtensionCollection iExtensionCollection, FileExtensionGroup iGroup) { Dictionary<String, FileExtension> pDicExtensions = new Dictionary<String, FileExtension>(); foreach(FileExtension curExtension in iExtensionCollection.Extensions.Values) { if(curExtension.Group == iGroup) { pDicExtensions.Add(curExtension.Extension, curExtension); } } FileExtensionCollection pFECGroup = new FileExtensionCollection(iGroup.Name, iGroup.Description, pDicExtensions); return (pFECGroup); }
public FileExtension(String iExtension, String iShortDescription, String iLongDescription = "", FileExtensionGroup iGroup = null) { Extension = iExtension; ShortDescription = iShortDescription; LongDescription = iLongDescription; Group = iGroup; }