C# Class NanoByte.Common.Tasks.TaskRunDialog

A dialog with a progress bar that runs and tracks the progress of an ITask.
Inheritance: System.Windows.Forms.Form
ファイルを表示 Open project: nano-byte/common Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
Build ( ) : void

Private Methods

Method Description
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

Method Details

Build() protected method

protected Build ( ) : void
return void

Execute() public method

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

TaskRunDialog() public method

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.
return System