C# Класс ZeroInstall.Commands.WinForms.ProgressForm

Displays the progress of a CliCommand and ITasks.
Наследование: System.Windows.Forms.Form
Показать файл Открыть проект

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

Метод Описание
Ask ( string question, MsgSeverity severity ) : Future
CustomizeSelections ( Func solveCallback, EventWaitHandle waitHandle ) : void

Allows the user to modify the InterfacePreferences and rerun the ISolver if desired. Returns immediatley.

This method must not be called from a background thread.

GetProgressControl ( [ taskName ) : IProgress

Gets a GUI element for reporting progress of a generic ITask. Should only be one running at a time.

This method must not be called from a background thread.

GetProgressControl ( [ taskName, ManifestDigest tag ) : IProgress

Gets a GUI element for reporting progress of a ITask for a specific implementation. May run multiple in parallel.

This method must not be called from a background thread.

Hide ( ) : void

Hides the form and the tray icon.

This method must not be called from a background thread.

ProgressForm ( [ cancellationTokenSource ) : System

Creates a new progress tracking form.

RestoreSelections ( ) : void

Restores the UI activated by ShowSelections and hidden by GetProgressControl(string) after an ITask.Run completes.

ShowSelections ( Selections selections, IFeedManager feedManager ) : void

Shows the user the Selections made by the ISolver. Returns immediately.

This method must not be called from a background thread.

ShowTrayIcon ( string information = null, ToolTipIcon messageType = ToolTipIcon.None ) : void

Shows the tray icon with an associated balloon message.

This method must not be called from a background thread.

Приватные методы

Метод Описание
Cancel ( ) : void

Hides the window and then starts canceling the current process asynchronously.

Dispose ( bool disposing ) : void
InitializeComponent ( ) : void

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

ProgressForm_FormClosing ( object sender, CancelEventArgs e ) : void
ProgressForm_Shown ( object sender, EventArgs e ) : void
buttonCancel_Click ( object sender, EventArgs e ) : void
buttonCustomizeSelectionsDone_Click ( object sender, EventArgs e ) : void
buttonHide_Click ( object sender, EventArgs e ) : void
notifyIcon_BalloonTipClicked ( object sender, EventArgs e ) : void
notifyIcon_MouseClick ( object sender, MouseEventArgs e ) : void

Описание методов

Ask() публичный Метод

public Ask ( string question, MsgSeverity severity ) : Future
question string
severity MsgSeverity
Результат Future

CustomizeSelections() публичный Метод

Allows the user to modify the InterfacePreferences and rerun the ISolver if desired. Returns immediatley.
This method must not be called from a background thread.
The value is set from a thread other than the UI thread.
public CustomizeSelections ( Func solveCallback, EventWaitHandle waitHandle ) : void
solveCallback Func Called after have been changed and the needs to be rerun.
waitHandle System.Threading.EventWaitHandle A wait handle to be signaled once the user is satisfied with the .
Результат void

GetProgressControl() публичный Метод

Gets a GUI element for reporting progress of a generic ITask. Should only be one running at a time.
This method must not be called from a background thread.
public GetProgressControl ( [ taskName ) : IProgress
taskName [ The name of the task to be tracked.
Результат IProgress

GetProgressControl() публичный Метод

Gets a GUI element for reporting progress of a ITask for a specific implementation. May run multiple in parallel.
This method must not be called from a background thread.
public GetProgressControl ( [ taskName, ManifestDigest tag ) : IProgress
taskName [ The name of the task to be tracked.
tag ManifestDigest A digest used to associate the task with a specific implementation.
Результат IProgress

Hide() публичный Метод

Hides the form and the tray icon.
This method must not be called from a background thread.
The value is set from a thread other than the UI thread.
public Hide ( ) : void
Результат void

ProgressForm() публичный Метод

Creates a new progress tracking form.
public ProgressForm ( [ cancellationTokenSource ) : System
cancellationTokenSource [ Used to signal when the user wishes to cancel the current process.
Результат System

RestoreSelections() публичный Метод

Restores the UI activated by ShowSelections and hidden by GetProgressControl(string) after an ITask.Run completes.
public RestoreSelections ( ) : void
Результат void

ShowSelections() публичный Метод

Shows the user the Selections made by the ISolver. Returns immediately.
This method must not be called from a background thread.
The value is set from a thread other than the UI thread.
public ShowSelections ( Selections selections, IFeedManager feedManager ) : void
selections Selections The as provided by the .
feedManager IFeedManager The feed manager used to retrieve feeds for additional information about implementations.
Результат void

ShowTrayIcon() публичный Метод

Shows the tray icon with an associated balloon message.
This method must not be called from a background thread.
The value is set from a thread other than the UI thread.
public ShowTrayIcon ( string information = null, ToolTipIcon messageType = ToolTipIcon.None ) : void
information string The balloon message text.
messageType ToolTipIcon The type icon to display next to the balloon message.
Результат void