/// <summary>
 /// Initializes a new instance of the CacheItem class.
 /// </summary>
 /// <param name="item">The ImageListViewItem associated
 /// with this request.</param>
 public CacheItem(MovieListViewItem item)
 {
     //mItem = item;
     //mIsVirtualItem = item.isVirtualItem;
     //mVirtualItemKey = item.mVirtualItemKey;
     //mFileName = item.FileName;
 }
 /// <summary>
 /// Adds the item to the cache queue.
 /// </summary>
 public void Add(MovieListViewItem item)
 {
     lock (lockObject)
     {
         toCache.Enqueue(new CacheItem(item));
         Monitor.Pulse(lockObject);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the ItemEventArgs class.
 /// </summary>
 /// <param name="item">The item that is the target of this event.</param>
 public MovieItemEventArgs(MovieListViewItem item)
 {
     mItem = item;
 }