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.
Afficher le fichier Open project: ChangSpivey/SubtitleMemorize Class Usage Examples

Méthodes publiques

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

Méthode Description
UpdateHandler ( ) : void

Method Details

AddSection() public méthode

public AddSection ( String name, int numberOfSteps ) : void
name String
numberOfSteps int
Résultat void

Cancel() public méthode

public Cancel ( ) : void
Résultat void

InfoProgress() public méthode

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

ProcessedSteps() public méthode

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

StartProgressing() public méthode

Show information for 0%.
public StartProgressing ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void