示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmTeacherDetails fmTeacherDetails = new frmTeacherDetails();

            fmTeacherDetails.Op = "new";
            fmTeacherDetails.Show();
        }
示例#2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (gvTeacher.CurrentRow.Index >= 0)
     {
         frmTeacherDetails fmTeacherDetails = new frmTeacherDetails();
         fmTeacherDetails.Op = "edit";
         fmTeacherDetails.SelectedTeacher = teacherSelected;
         fmTeacherDetails.Show();
     }
 }
示例#3
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmTeacherDetails fmTeacherDetails = new frmTeacherDetails();
     fmTeacherDetails.Op = "new";
     fmTeacherDetails.Show();
 }
示例#4
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (gvTeacher.CurrentRow.Index >= 0)
     {
         frmTeacherDetails fmTeacherDetails = new frmTeacherDetails();
         fmTeacherDetails.Op = "edit";
         fmTeacherDetails.SelectedTeacher = teacherSelected;
         fmTeacherDetails.Show();
     }
 }