Exemplo n.º 1
0
        private async void ForumsPage_Click(object sender, EventArgs e)
        {
            var web = new Tw2Url();
            var pr  = new Program();

            progressBar1.Value = 0;
            web.onCount       += pr.web_onCount;
            await web.ParseTopicPage();
        }
Exemplo n.º 2
0
        private async void MainForum_Click(object sender, EventArgs e)
        {
            var web = new Tw2Url();
            var pr  = new Program();

            progressBar1.Value = 0;
            web.onCount       += pr.web_onCount;
            await Task.Run(() => web.Url.ParseMainForumPage());

            UpdateLabel();
        }
Exemplo n.º 3
0
        private static void Main()
        {
            UrlsForums       = new List <string>();
            UrlsForumsPage   = new List <string>();
            UrlsPage         = new List <string>();
            UrlsTopic        = new List <string>();
            UrlsIsReadyParse = new List <string>();
            //if (UrlsForums == null) GetUrlsForums();
            var web = new Tw2Url();
            var pr  = new Program();

            if (GUI == null)
            {
                GUI = new Form1();
            }
            GUI.ShowDialog();
            web.onCount += pr.web_onCount;
            web.ParseMainForumPage();
            //web.ParseTopicPage();
        }
Exemplo n.º 4
0
 public Tw2Url()
 {
     Url        = this;
     _userAgent = GetUserAgent();
     _address   = "http://eu.battle.net";
 }