private void btnGetFromDB_Click(object sender, RoutedEventArgs e) { tbDownloaded.Text = string.Empty; DataGetter getter = new DataGetter(); foreach (var cas in getter.GetCases("US", "Washington", (int)CaseType.Confirmed, new DateTime(2020, 3, 4))) { tbDownloaded.Text += $"{cas.CountryName} - {cas.Date} - {cas.NumberOfCases}\n"; } }
private void btnDownload_Click(object sender, RoutedEventArgs e) { tbDownloaded.Text = string.Empty; DataGetter getter = new DataGetter(); foreach (var cas in getter.GetCases("Italy", "", (int)CaseType.Deaths, new DateTime(2020, 3, 15))) { tbDownloaded.Text += $"{cas.CountryName} - {cas.Date} - {cas.NumberOfCases}\n"; } //var Base = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_"; //var countries = DataParser.ParseRequest(RestClient.MakeRequest(Base + "confirmed_global.csv"), // RestClient.MakeRequest(Base + "recovered_global.csv"), // RestClient.MakeRequest(Base + "deaths_global.csv")); //foreach (var c in countries) // tbDownloaded.Text += c.Name + "\n"; }