Ejemplo n.º 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();
         }
     }
 }
Ejemplo n.º 2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     oFrm = new frmStudentEntry();
     oFrm.TransactionType = ePublicVariable.eVariable.TransactionType.ADD;
     oFrm.ShowDialog();
 }