/*public Product searchitems(int i)
         * {
         *  Product l = new Product();
         *  Shoppingcart u = new Shoppingcart();
         *  l = u.searchitems(i);
         *  return l;
         * }
         * public int getlengthofarray()
         * {
         *  Shoppingcart t = new Shoppingcart();
         *  int y = t.lengthofarray();
         *  return y;
         * }*/


        public void deleteitems(string productName, string catagory, string id, string image, string pri)
        {
            Shoppingcart cart = new Shoppingcart();

            foreach (Product item12 in Shoppingcart.items.ToArray())
            {
                if (item12.Name == productName && item12.Category == catagory && item12.Id == id)
                {
                    cart.deleteItems(item12);
                }
            }
        }
        public void enteritems(string productName, string catagory, string id, string ima, string price)
        {
            Product item = new Product();

            item.Name     = productName;
            item.Id       = id;
            item.Category = catagory;
            item.Image    = ima;
            item.Price    = price;
            Shoppingcart cart = new Shoppingcart();

            cart.addItems(item);
        }