Class ProgressMonitor
Provides a way for background workers to report their progress.
Implements
Inherited Members
Namespace: Algenta.Colectica.Model.Utility
Assembly: Algenta.Colectica.Model.dll
Syntax
public class ProgressMonitor : NotificationObject, INotifyPropertyChanged
Properties
IsBounded
Gets or sets a value indicating whether the amount of work to be completed is known.
Declaration
public bool IsBounded { get; set; }
Property Value
Type | Description |
---|---|
bool |
TaskName
Gets or sets the name of the task for which progress is being monitored.
Declaration
public string TaskName { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the task. |
Methods
ReportProgress(int, object)
Reports progress toward the task.
Declaration
public void ReportProgress(int percent, object userState)
Parameters
Type | Name | Description |
---|---|---|
int | percent | The percent of work already complete. |
object | userState | A user-defined object. |
ReportProgress(long, long, object)
Reports progress toward the task.
Declaration
public void ReportProgress(long complete, long total, object userState)
Parameters
Type | Name | Description |
---|---|---|
long | complete | The amount of work already complete. |
long | total | The total work to be completed. |
object | userState | A user-defined object. |
ReportProgress(object)
Raises the ProgressChanged
event.
Declaration
public void ReportProgress(object userState)
Parameters
Type | Name | Description |
---|---|---|
object | userState | User state, which may be displayed as a message. |
Events
ProgressChanged
Occurs when progress has changed.
Declaration
public event ProgressChangedEventHandler ProgressChanged
Event Type
Type | Description |
---|---|
ProgressChangedEventHandler |