DelayActionHelper

Ecng.Xaml

Provides a simple timer-based helper to invoke an action after a delay.

Propriedades

Interval : double

Gets or sets the delay interval in milliseconds. Changing the value restarts the timer.

Métodos

Restart()

Restarts the timer, resetting the delay countdown.

Start(Action)

Starts the helper and schedules the specified to run after the current Interval.

action
The action to execute when the delay elapses.
Stop()

Stops the timer and prevents the pending action from executing.