private void InvokeNewInputDeviceEvent(GenericInput input) { if (NewInputDevice != null) { NewInputDeviceEventArgs eventArgs = new NewInputDeviceEventArgs(input.DeviceInstanceId, input.DeviceName, input); NewInputDevice.Invoke(this, eventArgs); } }
private void InvokeNewInputDeviceEvent(String deviceId, GenericInput input) { if (NewInputDevice != null) { NewInputDeviceEventArgs eventArgs = new NewInputDeviceEventArgs(deviceId, input); NewInputDevice.Invoke(this, eventArgs); } }