//START PRODUCTS TAB private void AddProduct_Click(object sender, EventArgs e) { ProductDetails pd = new ProductDetails(this); if (pd.ShowDialog() == DialogResult.OK) { Product p = new Product(pd.Product_Name, pd.Product_ID, pd.Price, pd.Category, pd.Quantity); products.Add(p); loadproductdata(); ProductView.Update(); ProductView.Refresh(); } }