Singer Instruments PIXL Client
IsConnectionLiveChanged Event
Example 



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