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(); }
private void panel5_Click(object sender, EventArgs e) { ResourcesAddForm a = new ResourcesAddForm("Добавление нового товара", "", "", false); a.ShowDialog(); }