private void btProductAdd_Click(object sender, EventArgs e) { ModifyProductForm addProductForm = new ModifyProductForm(this); resetIndex(); this.Hide(); addProductForm.Show(); }
private void btProductModify_Click(object sender, EventArgs e) { if (IndexProduct != -1) { ModifyProductForm modifyProductForm = new ModifyProductForm(this, productChosen); resetIndex(); this.Hide(); modifyProductForm.ShowDialog(); } else { MessageBox.Show("You must make a selection"); } }