Exemple #1
0
        void Add(string itemName, string storeName, string itemlink,
                 int amt, int price, string city, int x, int y, string shoplink)
        {
            lock ("ItemLists")
            {
                ItemPriceList list = LocalSearchItemL.FirstOrDefault(par => par.ItemName == itemName);
                if (list == null)
                {
                    list = new ItemPriceList()
                    {
                        ItemName = itemName, URL = itemlink
                    };
                    LocalSearchItemL.Add(list);
                }

                list.Add(storeName, shoplink, amt, price, city, x, y);
            }
        }
        void Add(string itemName, string storeName, string itemlink,
                        int amt, int price, string city, int x, int y, string shoplink)
        {
            lock ("ItemLists")
            {
                ItemPriceList list = LocalSearchItemL.FirstOrDefault(par => par.ItemName == itemName);
                if (list == null)
                {
                    list = new ItemPriceList() { ItemName = itemName, URL = itemlink };
                    LocalSearchItemL.Add(list);
                }

                list.Add(storeName, shoplink, amt, price, city, x, y);
            }
        }