/// <summary> /// 添加学生; /// </summary> private void AddStudent() { frm_StudentInfo studentInfoForm = new frm_StudentInfo(null, this.ClassNo); studentInfoForm.ShowDialog(); this.LoadCurrentClassStudents(); }
/// <summary> /// 编辑学生; /// </summary> private void EditStudent() { string currentStudentNo = this.dgv_Student.CurrentRow.Cells[0].Value.ToString(); frm_StudentInfo studentInfoForm = new frm_StudentInfo(currentStudentNo, 0); studentInfoForm.ShowDialog(); this.LoadCurrentClassStudents(); }