C# Class Bloom.ToPalaso.Experimental.ProgressDialogForeground

A SIL.IProgress-compatible progress dialog which keeps the work in the foreground, using the progress calls by the worker to keep the UI alive. This has the advantage that any errors raised by the worker don't need special handling. NOTE: this dialog is more of an experiment: it doesn't normally work... it's a lot to ask the ui to freeze and still keep working by means of an occasionally hacked-in Application.DoEvents();
Inheritance: System.Windows.Forms.Form
Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Properties

Property Type Description
Progress SIL.Progress.MultiProgress
ProgressBar SimpleProgressIndicator
_status SimpleStatusProgress

Public Methods

Method Description
ProgressDialogForeground ( ) : System
ShowAndDoWork ( Action work ) : void
StartWorking ( object sender, EventArgs e ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
InitializeComponent ( ) : void

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

ProgressDialogForeground_Load ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

ProgressDialogForeground() public method

public ProgressDialogForeground ( ) : System
return System

ShowAndDoWork() public method

public ShowAndDoWork ( Action work ) : void
work Action
return void

StartWorking() public method

public StartWorking ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

Property Details

Progress public property

public MultiProgress,SIL.Progress Progress
return SIL.Progress.MultiProgress

ProgressBar public property

public SimpleProgressIndicator ProgressBar
return SimpleProgressIndicator

_status public property

public SimpleStatusProgress _status
return SimpleStatusProgress