private void modifier() { if (dataGridView1.Rows.Count == 0) { MessageBox.Show("Liste vide!", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error); } else { int codamodif = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()); ModifierClient ad = new ModifierClient(this, ac); ad.code_Client = codamodif; ad.Show(); ac.Enabled = false; } }
private void modifier() { if (dataGridView1.Rows.Count == 0) MessageBox.Show("Liste vide!", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error); else { int codamodif = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells[0].Value.ToString()); ModifierClient ad = new ModifierClient(this,ac); ad.code_Client = codamodif; ad.Show(); ac.Enabled = false; } }