private static extern int device_set_ExternalSwitchState(IntPtr devicePtr, ExternalSwitchInput extSwitch);
private void _electrodesControl_ExternalSwitchComboSelectedChanged(object sender, ExternalSwitchInput selectedInput) { if (_device.ReadParam <DeviceState>(Parameter.State) == DeviceState.Disconnected) { return; } _device.SetParam(Parameter.ExternalSwitchState, selectedInput); var updatedParam = _device.ReadParam <ExternalSwitchInput>(Parameter.ExternalSwitchState); if (updatedParam != selectedInput) { _electrodesControl.SwitchStateComboValue = updatedParam; } }
private static extern int device_read_ExternalSwitchState(IntPtr devicePtr, out ExternalSwitchInput outExtSwitch);