private void button2_Click(object sender, EventArgs e) { Close = false; InquiryByExaminee f = new InquiryByExaminee(FatherForm); f.Show(); f.getmessage(zhanghao); this.Close(); }
private void button1_Click(object sender, EventArgs e) { Close = false; if (beforeform == 1) { InquiryByTest f = new InquiryByTest(FatherForm); f.Show(); f.getmessage(zhanghao); } else { InquiryByExaminee f = new InquiryByExaminee(FatherForm); f.Show(); f.getmessage(zhanghao); } this.Close(); }