Пример #1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dgCandidates.Rows.Count > 0)
     {
         oFrm = new frmCandidateEntry(this, oMCandidate);
         oFrm.TransactionType = eVariable.TransactionType.EDIT;
         oFrm.ShowDialog();
     }
 }
Пример #2
0
 private void dgCandidates_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgCandidates.Rows.Count > 0)
     {
         oFrm = new frmCandidateEntry(this, oMCandidate);
         oFrm.TransactionType = eVariable.TransactionType.EDIT;
         oFrm.ShowDialog();
     }
 }
Пример #3
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     Forms.frmCandidateEntry oFrm = new frmCandidateEntry(this);
     oFrm.TransactionType = eVariable.TransactionType.ADD;
     oFrm.ShowDialog();
 }