/// <summary> /// Refresh port settings from application settings. /// </summary> public void RefreshPortSettings() { if (!(comPort == null)) { comPort.ChangeSettings(Settings.Default.ComPort, 115200, Parity.None, 8, StopBits.One, Handshake.None, "\r\n"); portStatusLabel.Text = comPort.PortName; } }