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

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

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

Приватные методы

Метод Описание
UpdateHandler ( ) : void

Описание методов

AddSection() публичный Метод

public AddSection ( String name, int numberOfSteps ) : void
name String
numberOfSteps int
Результат void

Cancel() публичный Метод

public Cancel ( ) : void
Результат void

InfoProgress() публичный Метод

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.
Результат System

ProcessedSteps() публичный Метод

Increase the number of processed steps by "steps".
public ProcessedSteps ( int steps ) : void
steps int Steps.
Результат void

StartProgressing() публичный Метод

Show information for 0%.
public StartProgressing ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void