Singer Instruments PIXL Client
CanAwakenChanged Event
Example 



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