TemporaryDisabler Constructor |
Constructor. You have to provide a callback function, that is been called when the event handling resumes.
Namespace: Altaxo.MainAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public TemporaryDisabler(
Action reenablingEventHandler
)
Parameters
- reenablingEventHandler Action
- The callback function called when the events resume. See remarks when the callback function is called.
Remarks The callback function is called only (i) if the event resumes (exactly: the _suppressLevel changes from 1 to 0),
and (ii) in that moment the _eventCount is >0.
To get the _eventCount>0, someone must call either GetEnabledWithCounting or GetDisabledWithCounting
during the suspend period.
See Also