public void EmptySlot(int slotIndex) { if (slotIndex < 0 || slotIndex >= MaxNumConnectedDevices) { return; } var eventArgs = new SlotEventArgs(_deviceSlots[slotIndex]); RaiseDeviceWillBeRemovedEvent(eventArgs); _deviceSlots[slotIndex].EmptySlot(); RaiseDeviceRemovedEvent(new SlotEventArgs(_deviceSlots[slotIndex])); }
private void RaiseBatteryInfoChangedEvent(SlotEventArgs e) { BatteryInfoChanged?.Invoke(this, e); }
private void RaiseSessionInfoChangedEvent(SlotEventArgs e) { SessionInfoChanged?.Invoke(this, e); }
private void RaiseDeviceWillBeRemovedEvent(SlotEventArgs e) { DeviceWillBeRemoved?.Invoke(this, e); }
private void RaiseDeviceAddedEvent(SlotEventArgs e) { DeviceAdded?.Invoke(this, e); }