// 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)); } }
/// <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); }
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; }