private void _keyboardHook_HotkeyPressed(KeyboardHook.HotkeyEventArgs e) { var changedToDevice = DeviceController.ActivateDeviceByHotkey(e.Key); // Depending on settings, also display confirmation if (changedToDevice != null && SettingsManager.Settings.ShowConfirmationDeviceChangedThroughHotkey) { PlaybackChangedForm.ShowForDevice(changedToDevice); } }