C# Class subtitleMemorize.InfoProgress

Information for progress dialog. This is independent of any toolkit because it a handler. Progress information is divided into two types: a) the section, which describes what is currently done. The section is a string like "Episode 01 - Extracting subtitle" Every section has... b) ... a number of steps. This is the information how much of the section is handled. An example is the number of processed lines when matching. Each section is finished after the number of processed steps is the same as the number of given steps for this section. Every section has the same share of the total 100%. There are some section fully completed, then there is the "active" section and then sections, that are 0% complete. Every of the n sections has 1/n part in the progress bar. In-between steps are determined by the sub-steps in the active section.
ファイルを表示 Open project: ChangSpivey/SubtitleMemorize Class Usage Examples

Public Methods

Method Description
AddSection ( String name, int numberOfSteps ) : void
Cancel ( ) : void
InfoProgress ( double>.Action setProgressHandler ) : System

Initializes a new instance of the subtitleMemorize.InfoProgress class. The handler takes an information string and a value between 0 and 1, indicating the progress.

ProcessedSteps ( int steps ) : void

Increase the number of processed steps by "steps".

StartProgressing ( ) : void

Show information for 0%.

Update ( ) : void

Private Methods

Method Description
UpdateHandler ( ) : void

Method Details

AddSection() public method

public AddSection ( String name, int numberOfSteps ) : void
name String
numberOfSteps int
return void

Cancel() public method

public Cancel ( ) : void
return void

InfoProgress() public method

Initializes a new instance of the subtitleMemorize.InfoProgress class. The handler takes an information string and a value between 0 and 1, indicating the progress.
public InfoProgress ( double>.Action setProgressHandler ) : System
setProgressHandler double>.Action Set progress handler.
return System

ProcessedSteps() public method

Increase the number of processed steps by "steps".
public ProcessedSteps ( int steps ) : void
steps int Steps.
return void

StartProgressing() public method

Show information for 0%.
public StartProgressing ( ) : void
return void

Update() public method

public Update ( ) : void
return void