public HeartRateListener() { m_uiConfig = ConfigReader.GetUIConfig(); m_serialPort = new SerialPort(m_uiConfig.SerialPortName); m_serialPort.DataReceived += onDataRecieved; }