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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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