private void toolStripButtonAdd_Click(object sender, EventArgs e) { var form = new FormRequestMaterial(); form.FormClosed += new FormClosedEventHandler(formRMclosed); form.Show(); }
private void toolStripButtonChange_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 1) { var form = new FormRequestMaterial(); int CurrentRow = dataGridView1.SelectedCells[0].RowIndex; form.IdRequest = CurrentRow; form.FormClosed += new FormClosedEventHandler(formRMclosed); form.Show(); } }