Beispiel #1
0
        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);
        }
Beispiel #2
0
        public async void MakeRequest()
        {
            Info info = await CovidHelper.GetInfo();

            Global = info.Global;
            Countries.Clear();
            foreach (var item in info.Countries)
            {
                Countries.Add(item);
            }
        }
Beispiel #3
0
        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);
            }
        }
Beispiel #4
0
 public Chart()
 {
     this.InitializeComponent();
     covidHelper = new CovidHelper();
 }