예제 #1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            frmReaderRunning frm = new frmReaderRunning(this.cmbReaders.Text, this);

            this.btnStart.Enabled = false;

            frm.Show();
        }
예제 #2
0
        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("串口已经不存在!", "信息提示");
            }
        }