//------------------------------------------------------------------------------------------------ private void button1_Click(object sender, EventArgs e) { updateForm frm1 = new updateForm(userId, userMot); frm1.Show(); this.Close(); }
private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { updateForm updateFormObject = new updateForm(Convert.ToInt32(dataGridView1.Rows[e.RowIndex].Cells[0].Value), dataGridView1.Rows[e.RowIndex].Cells[7].Value.ToString()); updateFormObject.ShowDialog(); button1_Click(sender, e); //this.Close(); }