C# Class SIL.FieldWorks.Common.Controls.ProgressDialogWithTaskDlgImpl

Inheritance: SIL.FieldWorks.Common.Controls.ProgressDialogImpl
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
LaunchDialogAndStartTask ( IWin32Window owner ) : DialogResult

Kicks off a timer to send the Start event to any listeners and show the progress dialog

ProgressDialogWithTaskDlgImpl ( Form owner ) : System

Méthodes protégées

Méthode Description
OnShown ( EventArgs e ) : void

Override to remove timer in the normal case where it is unnecessary.

Private Methods

Méthode Description
timer_Tick ( object sender, EventArgs e ) : void

It used to be that the Shown event of ProgressDialogImpl was used to trigger the start of the task. This proved unreliable. This timer is a backup for cases where OnShown doesn't happen due to exceptions being thrown during the dialogs inital message pumping.

Method Details

LaunchDialogAndStartTask() public méthode

Kicks off a timer to send the Start event to any listeners and show the progress dialog
public LaunchDialogAndStartTask ( IWin32Window owner ) : DialogResult
owner IWin32Window
Résultat DialogResult

OnShown() protected méthode

Override to remove timer in the normal case where it is unnecessary.
protected OnShown ( EventArgs e ) : void
e System.EventArgs
Résultat void

ProgressDialogWithTaskDlgImpl() public méthode

public ProgressDialogWithTaskDlgImpl ( Form owner ) : System
owner System.Windows.Forms.Form
Résultat System