示例#1
0
 /// <summary>
 /// Empties the slot by removing the reference to the connected device.
 /// </summary>
 public void EmptySlot()
 {
     OutputDataIDs.Clear();
     ConnectedDevice.SlotIndex = -1;
     ConnectedDevice           = null;
 }
示例#2
0
 /// <summary>
 /// Adds the SensorDevice instance refrence that would occupy the slot.
 /// </summary>
 /// <param name="device">Device.</param>
 public void AddDevice(SensorDevice device)
 {
     ConnectedDevice           = device;
     ConnectedDevice.SlotIndex = Index;
     LastConnectedId           = ConnectedDevice.Id;
 }