private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { Code1 = int.Parse(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString()); اضافة_خدمات_لمرضى_الطوارئ ff = new اضافة_خدمات_لمرضى_الطوارئ(); ff.Focus(); this.DialogResult = DialogResult.OK; }
private void dataGridView1_CellDoubleClick_1(object sender, DataGridViewCellEventArgs e) { try { Code1 = int.Parse(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString()); arrive_date = dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString(); اضافة_خدمات_لمرضى_الطوارئ ff = new اضافة_خدمات_لمرضى_الطوارئ(); ff.Focus(); this.DialogResult = DialogResult.OK; } catch (Exception ex) { MessageBox.Show(ex.Message + ""); } }