DicomObjects.NET.V8
DicomObjects Namespace / DicomViewer Class / Refresh Method / Refresh(Boolean) Method
if true, then the method issues a sychronous Invoke to the main thread and therefore does not return until the redraw has completed.



    Refresh(Boolean) Method
    Refresh the control with optional wait for return
    Syntax
    'Declaration
     
    Public Overloads Sub Refresh( _
       ByVal Synchronous As Boolean _
    ) 
     
    'Usage
     
    Dim instance As DicomViewer
    Dim Synchronous As Boolean
     
    instance.Refresh(Synchronous)

    Parameters

    Synchronous
    if true, then the method issues a sychronous Invoke to the main thread and therefore does not return until the redraw has completed.
    Remarks

    If called from the main thread, then this is equiavalent to base.Refresh()

    If called synchronously fom another thread, then it waits for the redraw to complete, so be careful to avoid deadlocks

    If called asynchronously fom another thread, then it simply issues a redraw request

    Requirements

    Target Platforms: .NET CLR 4.0 or higher

    See Also