private void productsaddButton_Click(object sender, EventArgs e) { ModifyProduct = false; this.Hide(); UpdateProducts addPRoductScreen = new UpdateProducts(); addPRoductScreen.Show(); }
private void productsmodifyButton_Click(object sender, EventArgs e) { if (ProductIndex >= 0) { ModifyProduct = true; this.Hide(); UpdateProducts modifyProductScreen = new UpdateProducts(Inventory.CurrentProduct); modifyProductScreen.Show(); } }