Ejemplo n.º 1
0
        private void AddRowContactButton_Click(object sender, EventArgs e)
        {
            _crudStudent = new CRUDStudent(student);
            using (var newAddFormContacts = new AddFormContacts(contactDataTable, _crudStudent, currentRowIndex, FlagAddOrUpdate.Addition))
            {
                newAddFormContacts.ShowDialog();
            }

            SetButtonsContactEnabledOrDisabled();
        }
Ejemplo n.º 2
0
 private void UpdateRowContactButton_Click(object sender, EventArgs e)
 {
     currentRowIndex = GetCurrentRowIndexContactDataGridView();
     if (currentRowIndex == null)
     {
         return;
     }
     using (var newAddFormContacts = new AddFormContacts(contactDataTable, _crudStudent, currentRowIndex, FlagAddOrUpdate.Update))
     {
         newAddFormContacts.ShowDialog();
     }
 }