Ejemplo n.º 1
0
 private void 新增学生信息ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (frmEditStudent == null || frmEditStudent.IsDisposed)
     {
         frmEditStudent           = new frmEditStudent();
         frmEditStudent.MdiParent = this;
         frmEditStudent.Show();
     }
     frmEditStudent.Activate();
 }
Ejemplo n.º 2
0
        private void 编辑学生信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.dgvStu.SelectedRows.Count == 0)
            {
                return;
            }
            Student        stu = this.dgvStu.CurrentRow.DataBoundItem as Student;
            frmEditStudent fes = new frmEditStudent();

            fes.Stu      = stu;
            fes.IsUpdate = true;
            fes.ShowDialog();
            GetStudent();
        }