Beispiel #1
0
 public void Fetch()
 {
     this.Stop();
     this.IsBusy = true;
     OnBusyStatusChange?.Invoke(this.IsBusy, new EventArgs());
     browser.Navigate("https://www.worldometers.info/coronavirus/");
 }
Beispiel #2
0
 public void Stop()
 {
     browser.Stop();
     this.IsBusy = false;
     OnBusyStatusChange?.Invoke(this.IsBusy, new EventArgs());
     OnStopped?.Invoke(this, new EventArgs());
 }
Beispiel #3
0
 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());
 }