C# Класс NanoByte.Common.Tasks.TaskRunDialog

A dialog with a progress bar that runs and tracks the progress of an ITask.
Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

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

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