public void Fetch() { this.Stop(); this.IsBusy = true; OnBusyStatusChange?.Invoke(this.IsBusy, new EventArgs()); browser.Navigate("https://www.worldometers.info/coronavirus/"); }
public void Stop() { browser.Stop(); this.IsBusy = false; OnBusyStatusChange?.Invoke(this.IsBusy, new EventArgs()); OnStopped?.Invoke(this, new EventArgs()); }
private void browser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { Scrapper.Scrapper.Init(browser.DocumentText); this.IsBusy = false; OnBusyStatusChange?.Invoke(this.IsBusy, new EventArgs()); OnComplete?.Invoke(browser.DocumentText, new EventArgs()); }