LoadDictionaries() public method

public LoadDictionaries ( ) : bool
return bool
Ejemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            StatusBoxWrite("Initialising IPTV# - Please wait." + Environment.NewLine);

            StatusBoxWrite("Searching IPTVs on the web...");
            searcher = new SearchHelper();
            List <string> results = searcher.DoSearch("Xtream+Codes+v1.0.59.5&kl=it-it");

            comboBox1.DataSource = results;
            StatusBoxWrite("Done. Showing" + results.Count + " Results." + Environment.NewLine);

            StatusBoxWrite("Loading word dictionary...");
            dictionary = new DictionaryManager("part_list");
            dictionary.LoadDictionaries();

            if (dictionary.entries.Count > 0)
            {
                StatusBoxWrite(dictionary.entries.Count + " dictionary entries loaded. Ready." + Environment.NewLine);
                button1.Enabled = true;
            }
            else
            {
                StatusBoxWrite("No dictionary entries loaded. Not Ready.");
            }

            StatusBoxWrite("\"Force Crawl\" disables site validity check.");
            StatusBoxWrite("\"Try Uppercase First Letter\" changes the first letter of your dictionary entries to uppercase when sending requests. (Example: mario -> Mario)");
            StatusBoxWrite("Only for demo purposes. Be warned as crawl time may increase drastically depending on target site and dictionary size.");
            num_found = 0;
        }
Ejemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {

            StatusBoxWrite("Initialising IPTV# - Please wait." + Environment.NewLine);

            StatusBoxWrite("Searching IPTVs on the web...");
            searcher = new SearchHelper();    
            List<string> results = searcher.DoSearch("Xtream+Codes+v1.0.59.5&kl=it-it");
            comboBox1.DataSource = results;
            StatusBoxWrite("Done. Showing" + results.Count + " Results." + Environment.NewLine);
            
            StatusBoxWrite("Loading word dictionary...");
            dictionary = new DictionaryManager("part_list");
            dictionary.LoadDictionaries();

            if (dictionary.entries.Count > 0)
            {
                StatusBoxWrite(dictionary.entries.Count + " dictionary entries loaded. Ready." + Environment.NewLine);
                button1.Enabled = true;
            }
            else
            {
                StatusBoxWrite("No dictionary entries loaded. Not Ready.");
            }

            StatusBoxWrite("\"Force Crawl\" disables site validity check.");
            StatusBoxWrite("\"Try Uppercase First Letter\" changes the first letter of your dictionary entries to uppercase when sending requests. (Example: mario -> Mario)");
            StatusBoxWrite("Only for demo purposes. Be warned as crawl time may increase drastically depending on target site and dictionary size.");
            num_found = 0;
            
        }