C# 클래스 ZeroInstall.Commands.WinForms.ProgressForm

Displays the progress of a CliCommand and ITasks.
상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: 0install/0install-win

공개 메소드들

메소드 설명
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