C# 클래스 ImageGlass.ImageListView.ImageListViewCacheMetadata

Represents the cache manager responsible for asynchronously loading item metadata.
상속: IDisposable
파일 보기 프로젝트 열기: d2phap/ImageGlass 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

Add() 공개 메소드

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.
리턴 void

BeginItemEdit() 공개 메소드

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
리턴 void

Clear() 공개 메소드

Clears the cache.
public Clear ( ) : void
리턴 void

Dispose() 공개 메소드

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

EndItemEdit() 공개 메소드

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.
리턴 void

ImageListViewCacheMetadata() 공개 메소드

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

Pause() 공개 메소드

Pauses the cache threads.
public Pause ( ) : void
리턴 void

Remove() 공개 메소드

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

Resume() 공개 메소드

Resumes the cache threads.
public Resume ( ) : void
리턴 void