// // private void insert_client_button_Click(object sender, EventArgs e)//добавляем клиента { FormNewClient newClientForm = new FormNewClient(false, "", "", "", "", "", ""); if (newClientForm.ShowDialog() != DialogResult.OK) { RefreshDGVClient(); } }
private void update_client_button_Click(object sender, EventArgs e)//обновляем измененные данные клиента { FormNewClient newClientForm = new FormNewClient(true, dataGridViewClient.CurrentRow.Cells[0].Value.ToString(), dataGridViewClient.CurrentRow.Cells[1].Value.ToString(), dataGridViewClient.CurrentRow.Cells[2].Value.ToString(), dataGridViewClient.CurrentRow.Cells[3].Value.ToString(), dataGridViewClient.CurrentRow.Cells[4].Value.ToString(), dataGridViewClient.CurrentRow.Cells[5].Value.ToString()); if (newClientForm.ShowDialog() != DialogResult.OK) { RefreshDGVClient(); } }