private void editMenuItem_Click(object sender, EventArgs e) //редактирование { int index = Convert.ToInt32(tablePrison.SelectedCells[0].OwningRow.Cells[0].Value); Form editionForm = new Add_Form(index, jailed); editionForm.ShowDialog(); }
private void add_Click(object sender, EventArgs e) { Add_Form add = new Add_Form(jailed); add.Show(); }