private void comboBoxSerialPort_SelectedIndexChanged(object sender, EventArgs e) { string comPort = comboBoxSerialPort.SelectedItem.ToString(); if (!string.IsNullOrWhiteSpace(comPort)) { _uartService = new COMPortService(comPort, 9600); _dynoService = new MAHADynoService(_uartService); } else { _uartService = null; _dynoService = null; UpdateTestValues(null); UpdateStatus(null); } }
public MAHADynoService(IUARTService uartService) { _uartService = uartService; }
public UARTLogService(IUARTService wrapped) { _wrapped = wrapped; }