private void button1_Click(object sender, EventArgs e) { // 新建添加窗口 Form frmStuInfo = new frmStuInfo(); frmStuInfo.Show(); }
private void buttonChaxun_Click(object sender, EventArgs e) { string stuNumber = this.textBoxNumber.Text;// 获取学号 DAL.Services.StuBasicInfoService sbs = new DAL.Services.StuBasicInfoService(); StuBasicinfo student = sbs.GetStuByStuID(stuNumber); if (null == student) { MessageBox.Show("未查询到学生信息!"); return; } else { Form frmStu = new frmStuInfo(student); frmStu.TopLevel = false; frmStu.Parent = this.panel1; frmStu.Show(); } }