private void EditBtn_Click(object sender, EventArgs e) { ResourcesAddForm a = new ResourcesAddForm("Редактирование товара", dataGridView1.CurrentRow.Cells[0].Value.ToString(), dataGridView1.CurrentRow.Cells[1].Value.ToString(), true); a.ShowDialog(); }