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(); }
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(); }
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(); }
public Tw2Url() { Url = this; _userAgent = GetUserAgent(); _address = "http://eu.battle.net"; }