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.
파일 보기 프로젝트 열기: ChangSpivey/SubtitleMemorize 1 사용 예제들

공개 메소드들

메소드 설명
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