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
Afficher le fichier Open project: nano-byte/common Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
Build ( ) : void

Private Methods

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

protected Build ( ) : void
Résultat void

Execute() public méthode

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

TaskRunDialog() public méthode

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