Manages objects that must be toggled on and off in a regular pattern over time. This is known as a cadence.
CadenceManager is intended primarily for Windows Forms controls, but can be used for any item that implements
the ICadencedControl interface.
ASCOM.Controls (in ASCOM.Controls.dll) Version: 184.108.40.206 (220.127.116.1174)
public sealed class CadenceManager
Public NotInheritable Class CadenceManager
public ref class CadenceManager sealed
The CadenceManager type exposes the following members.
Gets a reference to the Singleton.
If the Singleton has not yet be instantiated, this causes the object
to be created and the constructor to execute (lazy loading).
This operation uses the double-checked locking pattern to ensure thread-safety.
Adds the specified ICadencedControl to the list of managed controls.
If this is the first control being added, then the update timer is configured and started.
Removes a control from the update list.
If no managed controls remain in the list, then the update timer is stopped.
CadenceManager behaves slightly differently if the managed item is a Windows Forms control.
Invisible controls do not receive updates until they become visible again.The CadenceUpdate(Boolean) method is marshalled to the GUI thread.