private void button_OnOK_Click(object sender, EventArgs e) { this.userControl_TestCommitteeRegistrationNo_Base1.FillClass(); String str_ErrMessage; str_ErrMessage = this.myClass_TestCommitteeRegistrationNo.CheckField(); if (!string.IsNullOrEmpty(str_ErrMessage)) { this.DialogResult = DialogResult.None; this.label_ErrMessage.Text = str_ErrMessage; return; } if (this.bool_Add) { if (string.IsNullOrEmpty(Class_TestCommitteeRegistrationNo.AutoFill(this.myClass_TestCommitteeRegistrationNo.TestCommitteeID, this.myClass_TestCommitteeRegistrationNo.IdentificationCard))) { MessageBox.Show("²Ù×÷ʧ°Ü£¬¸Ã´æµµ±àºÅÒѱ»Ê¹Óã¬ÇëÐÞ¸ÄÏÂÒ»¸ö´æµµ±àºÅ£¡"); } } }