C# Class ImageGlass.ImageListView.ImageListViewCacheMetadata

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat void

BeginItemEdit() public méthode

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
Résultat void

Clear() public méthode

Clears the cache.
public Clear ( ) : void
Résultat void

Dispose() public méthode

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

EndItemEdit() public méthode

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.
Résultat void

ImageListViewCacheMetadata() public méthode

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

Pause() public méthode

Pauses the cache threads.
public Pause ( ) : void
Résultat void

Remove() public méthode

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

Resume() public méthode

Resumes the cache threads.
public Resume ( ) : void
Résultat void