コード例 #1
0
        private void UpdateFromDataTableContact()
        {
            var contactType =
                DictionaryForRefreshDataTables.GetContactTypeByValueContactTypeCombobox(TypeContactComboBox.Text);
            var contact = stringMaskedTextBox.Text;

            var newContact = new Contact()
            {
                contactType = contactType, contactValue = contact
            };
            var thisDeleteContact = _crudStudent.GetContact(_currentRowContactIndex);

            _crudStudent.DeleteCurrentContact(thisDeleteContact);
            _crudStudent.UpdateCurrentContact(thisDeleteContact, newContact, _currentRowContactIndex);

            AddRowsDataTableContact(_crudStudent.GetContactList(), _dataTableContact);
        }
コード例 #2
0
        private void DeleteInstanceRowTable(int indexCurrentRow)
        {
            Contact thisDeleteContact = _crudStudent.GetContact(indexCurrentRow);

            _crudStudent.DeleteCurrentContact(thisDeleteContact);
        }