Exemple #1
0
        private void btnClear_Click(object sender, EventArgs e)
        {
            DialogResult dr = MessageBox.Show("是否清零?", "清零", MessageBoxButtons.OKCancel,
                                              MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);

            if (dr == DialogResult.OK)
            {
                ResultInfo.ClearResult();

                DisplayResultStatistics(0, 0);

                txtLabelImei.Text = string.Empty;
                txtSn.Text        = string.Empty;
                txtImei.Text      = string.Empty;
                txtEid.Text       = string.Empty;
                txtIccid.Text     = string.Empty;

                txtUart.BackColor = Color.White;
                txtUart.Text      = string.Empty;
                txtLog.BackColor  = Color.White;
                txtLog.Text       = string.Empty;
                //txtLog.Text = "正在检测模块上电,请插入模块...\r\n";
                lblStopWatch.Text = "00:00:00:000";
            }
        }