示例#1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dgStudents.Rows.Count > 0)
     {
         if (dgStudents.SelectedCells[0].Selected == true)
         {
             oFrm = new frmStudentEntry(this, oMStudent);
             oFrm.TransactionType = ePublicVariable.eVariable.TransactionType.EDIT;
             oFrm.ShowDialog();
         }
     }
 }
示例#2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     oFrm = new frmStudentEntry();
     oFrm.TransactionType = ePublicVariable.eVariable.TransactionType.ADD;
     oFrm.ShowDialog();
 }