Eyeshot 10 WinForms API Reference
UpdateProgressAndCheckCanceledParallel Method

WinForms Assembly > devDept.Eyeshot Namespace > WorkUnit Class : UpdateProgressAndCheckCanceledParallel Method
The total number of steps
The progress bar text
The background worker thread
DoWork event arguments
Updates the progress bar value and checks if the worker thread has been canceled, for a parallel loop.
Syntax
'Declaration
 
Protected Friend Function UpdateProgressAndCheckCanceledParallel( _
   ByVal total As Integer, _
   ByVal text As String, _
   ByVal worker As BackgroundWorker, _
   ByVal doWorkEventArgs As DoWorkEventArgs _
) As Boolean
protected internal bool UpdateProgressAndCheckCanceledParallel( 
   int total,
   string text,
   BackgroundWorker worker,
   DoWorkEventArgs doWorkEventArgs
)

Parameters

total
The total number of steps
text
The progress bar text
worker
The background worker thread
doWorkEventArgs
DoWork event arguments

Return Value

False if the worker thread was canceled, true otherwise.
Remarks
Call ResetProgressParallel before starting the parallel loop.
See Also

Reference

WorkUnit Class
WorkUnit Members