Singer Instruments PIXL Client
RequiredPlateInteractionsChanged Event
Example 



SI.PIXL.Client Namespace > PIXLClient Class : RequiredPlateInteractionsChanged Event
Occurs when the required plate interactions change.
Syntax
'Declaration
 
Public Event RequiredPlateInteractionsChanged As EventHandler(Of PlateRequest())
'Usage
 
Dim instance As PIXLClient
Dim handler As EventHandler(Of PlateRequest())
 
AddHandler instance.RequiredPlateInteractionsChanged, handler
public event EventHandler<PlateRequest[]> RequiredPlateInteractionsChanged
public:
event EventHandler<array<PlateRequest>>^ RequiredPlateInteractionsChanged
Example
This sample shows how to handle the RequiredPlateInteractionsChanged event.
// Subscribe to RequiredPlateInteractionsChanged events.
pixl.RequiredPlateInteractionsChanged += (sender, requiredPlateInteractions) =>
{
    // Check that there is at least one interaction required.
    if (requiredPlateInteractions.Length == 0)
    {
        // Publish an update to the Console.
        Console.WriteLine("There is no required plate interactions.");
    }
    else
    {
        // Iterate all interactions.
        foreach (var interaction in requiredPlateInteractions)
        {
            // Publish an update to the Console displaying the requests.
            Console.WriteLine($"Please {interaction.Action} {interaction.Plate.ID} ({interaction.Plate.Type}, {interaction.Plate.Role}) into the {interaction.Bay} bay.");
        }
    }
};
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