Click or drag to resize

FieldCorrectionBeginUpdate Method

Defines the beginning of an update block, which temporarily suppresses all change notifications.

Namespace: RAYLASE.Marker.Corrections
Assembly: RAYLASE.Marker.Corrections (in RAYLASE.Marker.Corrections.dll) Version: 2.19.0
Syntax
C#
public void BeginUpdate()
Remarks

BeginUpdate and EndUpdate must form a matching pair. It is permissible to nest multiple BeginUpdate and EndUpdate blocks.

Each call to BeginUpdate increments a reference counter, which is decremented by each call made to EndUpdate.

All event notifications of this class are suppressed and deferred until the final call to EndUpdate (the call that reduces the reference counter to 0). In this case, any pending notifications will trigger a single call to the event handler.

It is recommended to pack BeginUpdate and EndUpdate into a try-finally block as shown in the following example:

C#
BeginUpdate();
try
{
    // make desired changes to the parameters and/or correction table
}
finally { EndUpdate(); }

See Also