Removing Plates
Note
This topic assumes that there is an instance of the PIXLClient object called pixl. If this is not the case, please see the Connecting to the PIXL topic.
Whenever a plate has been removed from the PIXL the client should notify the PIXL so that it is aware of the change.
The PIXL can be notified of a plate removal with the PlateRemoved method on the PIXLClient.
pixl.PlateRemoved(Bays.Red);
By iterating the Bays, all plates can easily be removed from the PIXL.
// Remove all plates from all bays.
foreach (var bay in new[] { Bays.Black, Bays.Red, Bays.Blue, Bays.Yellow, Bays.Green })
{
// Notify PIXL that plate has been removed.
PIXL.PlateRemoved(bay);
}