/// <summary> /// 串口选择更改 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cbboxPort_SelectedIndexChanged(object sender, EventArgs e) { portControl.closePort(); portControl.isOpen(); }