private void listBox2_DoubleClick(object sender, EventArgs e) { if (currentProduct != null) { Form edit = new ProductInf(currentProduct, Text, 2); edit.ShowDialog(); } }
private void addbutton_Click(object sender, EventArgs e) { Form add = new ProductInf(Text, 1); add.ShowDialog(); }