Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / WorkUnit Class / UpdateProgressAndCheckCancelledParallel Method
The total number of steps
The progress bar text
The background worker thread
DoWork event arguments

In This Topic
    UpdateProgressAndCheckCancelledParallel Method
    In This Topic
    Updates the progress bar value and checks if the worker thread has been canceled, for a parallel loop.
    Syntax
    'Declaration
     
    Protected Friend Function UpdateProgressAndCheckCancelledParallel( _
       ByVal total As Integer, _
       ByVal text As String, _
       ByVal worker As BackgroundWorker, _
       ByVal doWorkEventArgs As DoWorkEventArgs _
    ) As Boolean
    protected internal bool UpdateProgressAndCheckCancelledParallel( 
       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