Exemple #1
0
 // Thumbnail caching
 void imageListView1_ThumbnailCaching(object sender, Manina.Windows.Forms.ThumbnailCachingEventArgs e)
 {
     if (!benchMarking && logEventsCheckbox.Checked)
     {
         int index = -1;
         if (e.Item != null)
         {
             index = e.Item.Index;
         }
         LogEvent(string.Format("--> {0} ({1})", index, e.Size));
     }
 }
		/// <summary>
		/// Raises the ThumbnailCaching event.
		/// </summary>
		/// <param name="e">A ThumbnailCachingEventArgs that contains event data.</param>
		protected virtual void OnThumbnailCaching(ThumbnailCachingEventArgs e)
		{
			if (ThumbnailCaching != null)
				ThumbnailCaching(this, e);
		}