private void BTN_Edit_Click(object sender, EventArgs e) { if (Form2 == null || Form2.IsDisposed) { Form2 = new FormAdd(this); } Form2.Show(dataGridView1.CurrentRow, dataGridView1.CurrentRow.Index); }
private void BTN_Add_Click(object sender, EventArgs e) { Form2 = new FormAdd(this); Form2.Show(); }