Singer Instruments PIXL Client
UVBulbRemainingDurationChanged Event
Example 



SI.PIXL.Client Namespace > PIXLClient Class : UVBulbRemainingDurationChanged Event
Occurs when the PIXLClient.UVBulbRemainingDuration property changes.
Syntax
'Declaration
 
Public Event UVBulbRemainingDurationChanged As EventHandler(Of TimeSpan)
'Usage
 
Dim instance As PIXLClient
Dim handler As EventHandler(Of TimeSpan)
 
AddHandler instance.UVBulbRemainingDurationChanged, handler
public event EventHandler<TimeSpan> UVBulbRemainingDurationChanged
public:
event EventHandler<TimeSpan>^ UVBulbRemainingDurationChanged
Event Data

The event handler receives an argument of type TimeSpan containing data related to this event. The following TimeSpan properties provide information specific to this event.

PropertyDescription
Gets the days component of the time interval represented by the current System.TimeSpan structure.  
Gets the hours component of the time interval represented by the current System.TimeSpan structure.  
Gets the milliseconds component of the time interval represented by the current System.TimeSpan structure.  
Gets the minutes component of the time interval represented by the current System.TimeSpan structure.  
Gets the seconds component of the time interval represented by the current System.TimeSpan structure.  
Gets the number of ticks that represent the value of the current System.TimeSpan structure.  
Gets the value of the current System.TimeSpan structure expressed in whole and fractional days.  
Gets the value of the current System.TimeSpan structure expressed in whole and fractional hours.  
Gets the value of the current System.TimeSpan structure expressed in whole and fractional milliseconds.  
Gets the value of the current System.TimeSpan structure expressed in whole and fractional minutes.  
Gets the value of the current System.TimeSpan structure expressed in whole and fractional seconds.  
Example
This sample shows how to handle the UVBulbRemainingDurationChanged event.
// Subscribe to UVBulbRemainingDurationChanged events.
pixl.UVBulbRemainingDurationChanged += (sender, duration) =>
{
    // Publish an update to the Console.
    Console.WriteLine($"PIXL's UV bulb has {duration} remaining.");
};
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also