private void ShoppingCartForm_Load(object sender, EventArgs e)
 {
     foreach (var item in Home.shopCart.ItemsToPurchase)
     {
         ShoppingCartPanel panel = new ShoppingCartPanel();
         panel.create(item);
         flowLayoutPanel1.Controls.Add(panel);
     }
     totalamount();
 }
 public void refresh()
 {
     flowLayoutPanel1.Controls.Clear();
     lblAmount.Text = totalprice();
     foreach (var item in Home.shopCart.ItemsToPurchase)
     {
         ShoppingCartPanel panel = new ShoppingCartPanel();
         panel.create(item);
         flowLayoutPanel1.Controls.Add(panel);
     }
 }