public void updateAllWidgets(String selectedCountrySlug) { List <CountryInfo> countryInfoList = new List <CountryInfo>(); CovidHelper covidHelper = new CovidHelper(); countryInfoList = covidHelper.getCountryInfoList(selectedCountrySlug); TopBar_Panel.updateCountryInfo(countryInfoList.Last()); updateCharts(countryInfoList); }
public async void MakeRequest() { Info info = await CovidHelper.GetInfo(); Global = info.Global; Countries.Clear(); foreach (var item in info.Countries) { Countries.Add(item); } }
public TopBar() { this.InitializeComponent(); this.countryInfo = new CountryInfo(); this.covidHelper = new CovidHelper(); this.DataContext = this.countryInfo; countryList = this.covidHelper.getCountries(); List <Countries> orderedCountryList = countryList.OrderBy(o => o.country).ToList(); foreach (Countries country in orderedCountryList) { ComboBox_Country.Items.Add(country.country); } }
public Chart() { this.InitializeComponent(); covidHelper = new CovidHelper(); }