public SerialPortController(SerialPort _serialPort) { _continue = true; serialPort = _serialPort; serialPortWriter = new SerialPortWriter(); serialPortReader = new SerialPortReader(_serialPort); serialPortReader.Attach(serialPortMessage); serialPortWriter.Attach(new SerialPortWriterListener(_serialPort)); }