Example #1
0
 // Thumbnail cached
 void imageListView1_ThumbnailCached(object sender, Manina.Windows.Forms.ThumbnailCachedEventArgs e)
 {
     if (benchMarking)
     {
         lastThumbnailTime = benchmarkSW.ElapsedMilliseconds;
         cachedThumbnailCount++;
     }
     else if (logEventsCheckbox.Checked)
     {
         int index = -1;
         if (e.Item != null)
         {
             index = e.Item.Index;
         }
         LogEvent(string.Format("<-- {0} ({1})", index, e.Size));
     }
 }
Example #2
0
		/// <summary>
		/// Raises the ThumbnailCached event.
		/// </summary>
		/// <param name="e">A ThumbnailCachedEventArgs that contains event data.</param>
		protected virtual void OnThumbnailCached(ThumbnailCachedEventArgs e)
		{
			if (ThumbnailCached != null)
				ThumbnailCached(this, e);
		}
Example #3
0
 private void imageListView1_ThumbnailCached(object sender, ThumbnailCachedEventArgs e)
 {
     // This event is fired after a new thumbnail is cached.
     UpdateStatus(string.Format("Cached image: {0}", e.Item.Text));
     timerStatus.Enabled = true;
 }