private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { C_person.Person_id = Convert.ToInt32(dataGridView1.SelectedCells[0].Value); personFrm show = new personFrm(dataGridView1, add_, toolStripLabel1); show.ShowDialog(); }
private void toolStripButton1_Click(object sender, EventArgs e) { add_ = true; personFrm show = new personFrm(dataGridView1, add_, toolStripLabel1); show.ShowDialog(); }