串口链接,通过VS测试publicpartialclassForm1:Form{publicForm1(){InitializeComponent();SerialNameSelect();SelectPortStopBits();SelectHandShake();SelectParity();SerialNumber.SelectedIndex=0;serialBit.SelectedIndex=2;