C# Class GUIUtils.ProgressDialog

A progress dialog, for long operations
Inheritance: System.Windows.Forms.Form
Show file Open project: ERTMSSolutions/ERTMSFormalSpecs Class Usage Examples

Private Properties

Property Type Description
ExecuteWork void
ManageCancel void
ProgressDialog_KeyUp void
Progress_Load void
backgroundWorker1_ProgressChanged void
backgroundWorker1_RunWorkerCompleted void
btnCancel_Click void

Public Methods

Method Description
ProgressDialog ( string reason, Utils.ProgressHandler work, bool allowCancel = true ) : System

Constructor

UpdateMessage ( string message ) : void

Updates the message displayed to the user

Private Methods

Method Description
ExecuteWork ( object arg ) : void

Handles the execution of the task and catches exceptions to open a ShowMessage dialog

ManageCancel ( object sender, DoWorkEventArgs e ) : void

Handles a cancel event

ProgressDialog_KeyUp ( object sender, KeyEventArgs e ) : void

Handles the escape key touch

Progress_Load ( object sender, EventArgs e ) : void
backgroundWorker1_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
backgroundWorker1_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
btnCancel_Click ( object sender, EventArgs e ) : void

Handles the Cancel event

Method Details

ProgressDialog() public method

Constructor
public ProgressDialog ( string reason, Utils.ProgressHandler work, bool allowCancel = true ) : System
reason string
work Utils.ProgressHandler
allowCancel bool
return System

UpdateMessage() public method

Updates the message displayed to the user
public UpdateMessage ( string message ) : void
message string
return void