Skip to main content
Version: 2025

SalTimer

Namespace: PPJ.Runtime.Windows

Assembly: PPJ.Web.50 (5.0.0.0)

Raises periodic SAL timer actions for an owning Wisej control.

public class SalTimer : Timer

Each tick dispatches Sys.SAM_Timer with the timer identifier in the first message parameter, then raises the inherited tick event. The timer is disposed when its owner is disposed.

Example:

var timer = new PPJ.Runtime.Windows.SalTimer(owner, 1);
timer.Interval = 1000;
timer.Start();
// Later, stop and release the timer.
timer.Stop();
timer.Dispose();

Constructors

Instance member SalTimer(control, id)

Creates and registers a timer with its owning control.

NameTypeDescription
controlControlThe control that receives timer actions and owns the timer's lifetime.
idInt32The identifier included in timer actions and used to register the timer on the control.

Throws:

Methods

Protected member Dispose(disposing)

Removes the timer's registration from its owner and releases timer resources.

ParameterTypeDescription
disposingBooleanto clear the owner registration while disposing managed resources; otherwise, .

Protected member OnTick(e)

Dispatches the owner's SAL timer action before raising the inherited tick event.

ParameterTypeDescription
eEventArgsThe tick event data.