private void dataGridView1_MouseDoubleClick(object sender, MouseEventArgs e) { Form NewPart = new NewPart(_PartsList.PartsList[dataGridView1.CurrentRow.Index]); NewPart.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { Form NewPart = new NewPart(); NewPart.ShowDialog(); }