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

Inheritance: SIL.FieldWorks.Common.Controls.ProgressDialogImpl
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
OnShown ( EventArgs e ) : void

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

Private Methods

Method 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 method

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

OnShown() protected method

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

ProgressDialogWithTaskDlgImpl() public method

public ProgressDialogWithTaskDlgImpl ( Form owner ) : System
owner System.Windows.Forms.Form
return System