/// <summary> /// Empties the slot by removing the reference to the connected device. /// </summary> public void EmptySlot() { OutputDataIDs.Clear(); ConnectedDevice.SlotIndex = -1; ConnectedDevice = null; }
/// <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; }