C# 클래스 NanoByte.Common.Tasks.TaskRunDialog

A dialog with a progress bar that runs and tracks the progress of an ITask.
상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: nano-byte/common 1 사용 예제들

공개 메소드들

메소드 설명
Execute ( ) : void

Displays the dialog and runs the task. Handles cancellation and closing and destroying the dialog.

TaskRunDialog ( [ task, [ credentialProvider, CancellationTokenSource cancellationTokenSource ) : System

Creates a new task tracking dialog.

보호된 메소드들

메소드 설명
Build ( ) : void

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnProgressChanged ( TaskSnapshot snapshot ) : void
RunTask ( ) : void
TaskRunDialog ( [ task, ICredentialProvider credentialProvider, CancellationTokenSource cancellationTokenSource, [ parent = null ) : System
TaskRunDialog_FormClosing ( object sender, FormClosingEventArgs e ) : void
TaskRunDialog_Shown ( object sender, EventArgs e ) : void

메소드 상세

Build() 보호된 메소드

protected Build ( ) : void
리턴 void

Execute() 공개 메소드

Displays the dialog and runs the task. Handles cancellation and closing and destroying the dialog.
public Execute ( ) : void
리턴 void

TaskRunDialog() 공개 메소드

Creates a new task tracking dialog.
public TaskRunDialog ( [ task, [ credentialProvider, CancellationTokenSource cancellationTokenSource ) : System
task [ The trackable task to execute and display.
credentialProvider [ Object used to retrieve credentials for specific s on demand; can be null.
cancellationTokenSource CancellationTokenSource Used to signal if the user pressed the Cancel button.
리턴 System