コード例 #1
0
        private void ShowEditFrm()
        {
            if (dgv.CurrentRow == null)
            {
                return;
            }

            AddEditStudentFrm frm = new AddEditStudentFrm();
            frm.Parent = this.MdiParent;
            frm.EditMode = true;
            frm.StudentID = (string)dgv.CurrentRow.Cells[1].Value.ToString();
            frm.ShowDialog();
            LoadStudentToDGV("SELECT * FROM student");
        }
コード例 #2
0
 private void ShowAddFrm()
 {
     AddEditStudentFrm frm = new AddEditStudentFrm();
     frm.Parent = this.MdiParent;
     frm.ShowDialog();
     LoadStudentToDGV("SELECT * FROM student");
 }