示例#1
0
 /// <summary>
 /// Builds or modifies image to be added to the gallery.
 /// </summary>
 /// <param name="file">File to be added</param>
 /// <param name="ilvi"></param>
 /// <param name="caption">Text to put in the image description</param>
 private static void GalleryEntryBuilder(FileInfo file, ref Gallery.ImageListViewItem ilvi, string caption)
 {
     // check if ilvi is initialized, if not initialize it
     if (ilvi == null) ilvi = new Gallery.ImageListViewItem { FileName = file.FullName };
     ilvi.Text += caption + " | ";
 }
示例#2
0
 private void ilvGallery_ItemClick(object sender, Gallery.ItemClickEventArgs e)
 {
     lblDescriptorsDetails.Text = e.Item.Text;
 }