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.



In This Topic
    Refresh(Boolean) Method
    In This Topic
    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)
    public void Refresh( 
       bool Synchronous
    )
    public:
    void Refresh( 
       bool 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 3.5 or higher

    See Also