Beispiel #1
0
        // btn_parse
        private void button1_Click(object sender, EventArgs e)
        {
            Cards        = ManyParser.Parse(TB_ManyPage.Text);
            TotalSellers = Cards.Count;

            CurrentSeller = 0;
            curCard       = Cards[0];

            ShowCard(curCard);
        }
        private List <ItemCard> FillItemCards(List <string> Chunks)
        {
            ItemCard        tempCard = new ItemCard();
            List <ItemCard> res      = new List <ItemCard>();

            for (int i = 0; i < Chunks.Count; i++)
            {
                tempCard.ID          = GetID(Chunks[i]);
                tempCard.url         = GetUrl(Chunks[i]);
                tempCard.seller_name = GetSellerName(Chunks[i]);
                tempCard.seller_url  = GetSellerUrl(Chunks[i]);
                tempCard.orders      = GetOrdersCount(Chunks[i]);
                tempCard.stats       = new Dictionary <string, string>();
                tempCard.img_url     = GetImageUrl(Chunks[i]);
                res.Add(tempCard);
            }

            res = res.OrderByDescending(t => t.orders).ToList();

            return(res);
        }