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.
Notifying the PIXL that a plate has been removed from the Red bay |
Copy Code
|
---|---|
pixl.PlateRemoved(Bays.Red); |
By iterating the Bays, all plates can easily be removed from the PIXL.
Notifying the PIXL that the plates haves been removed from all bays |
Copy Code
|
---|---|
// 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); } |