Click or drag to resize

CadenceManager Class

Note: This API is now obsolete.

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.
Inheritance Hierarchy

Namespace:  ASCOM.Controls
Assembly:  ASCOM.Controls (in ASCOM.Controls.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
[ObsoleteAttribute("An improved version of this class is available as a NuGet package at")]
public sealed class CadenceManager

The CadenceManager type exposes the following members.

Public propertyStatic memberInstance
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.
Public methodAdd
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.
Public methodRemove
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.
See Also