Пример #1
0
        /// <summary>
        /// hashTable Key = url , Value = tag , verilen hashtable'daki url ve taglar ile bulduğu firma listelerini birleştirerek geri döndürür.
        /// </summary>
        /// <param name="hashTable"></param>
        /// <returns></returns>
        public List <Firm> getFirmList(Hashtable hashTable)
        {
            builder = new HtmlPageFromWebBuilder();

            FirmAdapter adapter;

            List <Firm> firmList = new List <Firm>();

            foreach (DictionaryEntry item in hashTable)
            {
                path    = Convert.ToString(item.Key);
                HtmlTag = Convert.ToString(item.Value);
                LoadHtml();

                adapter = new FirmAdapter(HtmlDocument, HtmlTag);

                List <Firm> list = adapter.GetFirmList();

                foreach (var firma in list)
                {
                    firmList.Add(firma);
                }
            }
            return(firmList);
        }
Пример #2
0
 /// <summary>
 /// Firma Listesi
 /// </summary>
 /// <returns></returns>
 public List <Firm> getFirmList()
 {
     return(adapter.GetFirmList());
 }