Click or drag to resize

HelperFunctionsProgressBarInitializeProgressBar Method (ActionObject, DoWorkEventArgs, ActionObject, ProgressChangedEventArgs)

This method will initialize the BackGround Worker for the Progress Bar. Calling this method is mandatory.

Namespace:  AHL
Assembly:  AHL (in AHL.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void InitializeProgressBar(
	Action<Object, DoWorkEventArgs> DoWork,
	Action<Object, ProgressChangedEventArgs> ProgressChanged
)

Parameters

DoWork
Type: SystemActionObject, DoWorkEventArgs
This is the delegate function what will handle the actual task for the Progress Bar. It must include a ProgressBar.GetWorker().ReportProgress(int i) value inside the actual task.
ProgressChanged
Type: SystemActionObject, ProgressChangedEventArgs
This is delegate function what will handle the progress bar update. It should include something similar to progressBar1.Value = e.ProgressPercentage;
See Also