private void SetSerialSettings()
 {
     serialComm.SetSerialPortName(comboBoxSerialPort.Text);
     serialComm.SetSerialBaudRate(SerialComm.GetBaudRateByIndex(comboBoxSerialBaud.SelectedIndex));
     serialComm.SetSerialDataBits(SerialComm.GetDataBitsByIndex(comboBoxSerialDataBits.SelectedIndex));
     serialComm.SetSerialParity(SerialComm.GetParityByIndex(comboBoxSerialParity.SelectedIndex));
     serialComm.SetSerialStopBits(SerialComm.GetStopBitsByIndex(comboBoxSerialStopBits.SelectedIndex));
 }
        public Form1()
        {
            InitializeComponent();

            serialComm = new SerialComm();
            serialComm.SetRecvListener(RecvListener);

            InitUI();
        }