Singer Instruments PIXL Client
IsDoorClosedChanged Event
Example 



SI.PIXL.Client Namespace > PIXLClient Class : IsDoorClosedChanged Event
Occurs when the PIXLClient.IsDoorClosed property changes.
Syntax
'Declaration
 
Public Event IsDoorClosedChanged As EventHandler(Of Boolean)
'Usage
 
Dim instance As PIXLClient
Dim handler As EventHandler(Of Boolean)
 
AddHandler instance.IsDoorClosedChanged, handler
public event EventHandler<bool> IsDoorClosedChanged
public:
event EventHandler<bool>^ IsDoorClosedChanged
Example
This sample shows how to handle the IsDoorClosedChanged event.
// Subscribe to IsDoorClosedChanged events.
pixl.IsDoorClosedChanged += (sender, isClosed) =>
{
    // Publish an update to the Console.
    Console.WriteLine($"PIXL's door is now {(isClosed ? "closed" : "open")}.");
};
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

Reference

PIXLClient Class
PIXLClient Members