private void btnOK_Click(object sender, EventArgs e)
        {
            ReturnEventArgs rea = new ReturnEventArgs();

            Application.DoEvents();

            //if (rbnCX.Checked)
            //{
            //    rea.strMsg = "CX";
            //    rea.intMsg = 1;
            //}
            //if (rbnPAx.Checked)
            //{
            //    rea.strMsg = "PAx";
            //    rea.intMsg = 2;
            //}
            //if (rbnGiga.Checked)
            //{
            //    rea.strMsg = "Giga";
            //    rea.intMsg = 3;
            //}

            string[] content = cbxScript.SelectedItem.ToString().Split(',');
            rea.strMsg = content[0].Substring(1);
            rea.intMsg = Convert.ToInt32(content[1].Substring(0, 2));

            if (ReturnMsg != null)//加此判断的作用是为了在此事件未实现的时候不会出现错误
            {
                this.Hide();
                ReturnMsg(this, rea);
            }

            this.Dispose();
        }
        private void btnCancel_Click(object sender, EventArgs e)
        {
            ReturnEventArgs rea = new ReturnEventArgs();

            Application.DoEvents();

            rea.strMsg = "";
            rea.intMsg = 0;
            if (ReturnMsg != null)//加此判断的作用是为了在此事件未实现的时候不会出现错误
            {
                this.Hide();
                ReturnMsg(this, rea);
            }
            this.Dispose();
        }