Click or drag to resize

LedIndicator Class

Note: This API is now obsolete.

Provides a status indicator modeled on a bi-colour red/green LED lamp. The lamp can be red or green and (traffic light colours) and can be steady or can flash with a choice of different cadences.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      System.Windows.FormsControl
        System.Windows.FormsScrollableControl
          System.Windows.FormsContainerControl
            System.Windows.FormsUserControl
              ASCOM.ControlsLedIndicator

Namespace: ASCOM.Controls
Assembly: ASCOM.Controls (in ASCOM.Controls.dll) Version: 7.0.0-rc.0+0
Syntax
[ObsoleteAttribute("An improved version of this class is available as a NuGet package at https://www.nuget.org/packages/TA.WinForms.Controls/")]
public sealed class LedIndicator : UserControl, 
	ICadencedControl

The LedIndicator type exposes the following members.

Constructors
 NameDescription
Public methodLedIndicator Default constructor for a new LEDIndicator object. Performs the default processing required by the designer.
Top
Properties
 NameDescription
Public propertyCadence Gets or sets the LED cadence bitmap. If the cadence has changed and is non-steady and the LED is enabled, then the cadence timer is started.
Public propertyEnabled Sets or reads the 'power status' of the LED When the LED is Enabled, it reflects the current colour settings and cadence. When disabled, the LED appears off and cadencing is disabled.
Public propertyLabelText Sets the text displayed alongside the indicator
Public propertyStatus Gets or sets the LED's status (which controls its display colour).
Top
Methods
 NameDescription
Public methodCadenceUpdate Refreshes the LED display, taking account of the power, colour and cadence settings.
Public methodDispose Releases all resources used by the Component.
Top
See Also