private void Serial_DataReceived(UartController sender, DataReceivedEventArgs e) { _dataIn = _simpleSerial.Deserialize(); foreach (String str in _dataIn) { DataReceived?.Invoke(this, str, DateTime.Now); } }
private void _serial_DataReceived(object sender, SerialDataReceivedEventArgs e) { _dataIn = _serial.Deserialize(); foreach (string t in _dataIn) { if (DataReceived != null) { DataReceived(this, t, DateTime.Now); } } }