private void insertButon_Click(object sender, EventArgs e) { InsertOrUpdateForm update = new InsertOrUpdateForm(null, _client); update.ShowDialog(); refreshGrid(); }
private void updateButton_Click(object sender, EventArgs e) { if (contactsGridView.SelectedRows.Count == 0) { MessageBox.Show(Resources.SelectRowUpdate); } else { InsertOrUpdateForm update = new InsertOrUpdateForm(selectedRow(), _client); update.ShowDialog(); refreshGrid(); } }