private void btnStart_Click(object sender, EventArgs e) { frmReaderRunning frm = new frmReaderRunning(this.cmbReaders.Text, this); this.btnStart.Enabled = false; frm.Show(); }
private void btnStart_Click(object sender, EventArgs e) { if (this.cmbPortName.Text != string.Empty) { frmReaderRunning frm = new frmReaderRunning(this.cmbZigbees.Text, this); this.btnStart.Enabled = false; frm.Show(); } else { MessageBox.Show("串口已经不存在!", "信息提示"); } }