Пример #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();
        }
Пример #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();
     }
 }