示例#1
0
 /// <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;
     }
 }