Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            // 新建添加窗口
            Form frmStuInfo = new frmStuInfo();

            frmStuInfo.Show();
        }
Exemplo n.º 2
0
        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();
            }
        }