1: string extension = Path.GetExtension(_FullName);
2: bool isJpeg = (0 == string.Compare(".jpg", extension, true));
3: bool isPng = (0 == string.Compare(".png", extension, true));
4:
5: FileInfo info = new FileInfo(_FullName);
6: coll.AddItem(Path.GetFileNameWithoutExtension(_FullName)
7: , _FullName
8: , _ImageDescription
9: , new ItemImage(_FullName_gross)
10: , new Facet("File name", _FileName
11: , isJpeg ? "*.jpg" : null
12: , isPng ? "*.png" : null)
13: , new Facet("File size", info.Length / 1000)
14: , new Facet("Creation time", _CreationTime)
15: , new Facet("Link:", new FacetHyperlink("click to view image", _FullName))
16: , new Facet("Artist", _Artist)
17: , new Facet("Color Space", _ColorSpace)
18: , new Facet("Compression", _Compression)
19: , new Facet("Copyright", _Copyright)
20: , new Facet("Exif Version", _ExifVersion)
21: , new Facet("GPS", _GPS)
22: );