C# Class ImageGlass.ImageListView.ImageListViewCacheMetadata

Represents the cache manager responsible for asynchronously loading item metadata.
Inheritance: IDisposable
Exibir arquivo Open project: d2phap/ImageGlass Class Usage Examples

Public Methods

Method Description
Add ( System.Guid guid, ImageListView adaptor, object virtualItemKey, bool useWIC ) : void

Adds the item to the cache queue.

BeginItemEdit ( System.Guid guid ) : void

Starts editing an item. While items are edited, the cache thread will not work on them to prevent collisions.

Clear ( ) : void

Clears the cache.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

EndItemEdit ( System.Guid guid ) : void

Ends editing an item. After this call, item image will be continued to be fetched by the thread.

ImageListViewCacheMetadata ( ImageListView owner ) : System

Initializes a new instance of the ImageListViewCacheShellInfo class.

Pause ( ) : void

Pauses the cache threads.

Remove ( System.Guid guid ) : void

Removes the given item from the cache.

Resume ( ) : void

Resumes the cache threads.

Private Methods

Method Description
CanContinueProcessing ( object argument ) : void

Determines if the item should be processed.

OnCanContinueProcessing ( CacheRequest item ) : bool

Determines if the item should be processed.

RunWorker ( CacheRequest item ) : void

Pushes the given item to the worker queue.

bw_DoWork ( object sender, ImageGlass.ImageListView.QueuedWorkerDoWorkEventArgs e ) : void

Handles the DoWork event of the queued background worker.

bw_RunWorkerCompleted ( object sender, ImageGlass.ImageListView.QueuedWorkerCompletedEventArgs e ) : void

Handles the RunWorkerCompleted event of the queued background worker.

Method Details

Add() public method

Adds the item to the cache queue.
public Add ( System.Guid guid, ImageListView adaptor, object virtualItemKey, bool useWIC ) : void
guid System.Guid Item guid.
adaptor ImageListView The adaptor for this item.
virtualItemKey object The virtual item key.
useWIC bool Whether to use the Windows Imaging Component.
return void

BeginItemEdit() public method

Starts editing an item. While items are edited, the cache thread will not work on them to prevent collisions.
public BeginItemEdit ( System.Guid guid ) : void
guid System.Guid The guid representing the item
return void

Clear() public method

Clears the cache.
public Clear ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

EndItemEdit() public method

Ends editing an item. After this call, item image will be continued to be fetched by the thread.
public EndItemEdit ( System.Guid guid ) : void
guid System.Guid The guid representing the item.
return void

ImageListViewCacheMetadata() public method

Initializes a new instance of the ImageListViewCacheShellInfo class.
public ImageListViewCacheMetadata ( ImageListView owner ) : System
owner ImageListView The owner control.
return System

Pause() public method

Pauses the cache threads.
public Pause ( ) : void
return void

Remove() public method

Removes the given item from the cache.
public Remove ( System.Guid guid ) : void
guid System.Guid The guid of the item to remove.
return void

Resume() public method

Resumes the cache threads.
public Resume ( ) : void
return void