/// <summary> /// 更新串口名 /// </summary> public void UpdatePortNames() { cb_portNameSend.DataSource = ModbusRtuClient.GetPortNames(); cb_portNameSend_server.DataSource = ModbusRtuClient.GetPortNames(); }