protected override void OnStart(string[] args) { Task.Run(() => { var githubScrapper = new GithubScrapper(); githubScrapper.Start(); }); }
public MainWindow() { InitializeComponent(); _githubScrapper = new GithubScrapper(); _githubScrapper.LoadProxy(); urlsProfileInDb = _githubScrapper.LoadUrlInDb(); var countPage = urlsProfileInDb.Count / 30 + 1; PageUrl.ItemsSource = Enumerable.Range(1, countPage).ToList(); Url.ItemsSource = urlsProfileInDb.Take(30); }