Пример #1
0
        private void insertButon_Click(object sender, EventArgs e)
        {
            InsertOrUpdateForm update = new InsertOrUpdateForm(null, _client);

            update.ShowDialog();
            refreshGrid();
        }
Пример #2
0
 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();
     }
 }