private void BtnAddProduct_Click(object sender, EventArgs e) { AddProduct product = new AddProduct(this); //add this // product.btnUpdate.Hide(); product.ShowDialog(); }
private void BtnAdd_Click(object sender, EventArgs e) { AddProduct product = new AddProduct(this); // product.btnUpdate.Enabled = false; product.ShowDialog(); }