C# 클래스 FrequencyAnalyzer.WorkerManager

Responsible for running the BackgroundWorker responsible for calculating word frequencies, and for creating the taskpane which is to display results to the user.
파일 보기 프로젝트 열기: angusmacdonald/word-frequency-analyzer 1 사용 예제들

공개 메소드들

메소드 설명
WorkerManager ( ) : System.ComponentModel

Sets up hooks for background worker.

createTaskPane ( ) : void
runBackgroundWorker ( bool saveresult ) : void

Runs the worker if no other worker instance is already running.

stopComputation ( ) : void

Cancel the background worker.

비공개 메소드들

메소드 설명
bgWorker_DoWork ( object sender, DoWorkEventArgs e ) : void

Starts the calculation of word frequencies by getting an array of all words in the current document.

bgWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
bgWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Called once the frequencies have been calculated.

메소드 상세

WorkerManager() 공개 메소드

Sets up hooks for background worker.
public WorkerManager ( ) : System.ComponentModel
리턴 System.ComponentModel

createTaskPane() 공개 메소드

public createTaskPane ( ) : void
리턴 void

runBackgroundWorker() 공개 메소드

Runs the worker if no other worker instance is already running.
public runBackgroundWorker ( bool saveresult ) : void
saveresult bool
리턴 void

stopComputation() 공개 메소드

Cancel the background worker.
public stopComputation ( ) : void
리턴 void