private void btnNewProduct_Click(object sender, EventArgs e) { AddProduct addProduct = new AddProduct(); addProduct.ShowDialog(); products.Add(addProduct.product); gdProductList.DataSource = products; }
private void btnModifyProduct_Click(object sender, EventArgs e) { AddProduct addProduct = new AddProduct(); addProduct.ShowDialog(); }