Example #1
0
        private void Valstis_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (Valstis.Text == "Pasaule")
            {
                txtConfirmed.Text = Metodes.GlobalData().result.confirmed;
                txtDeaths.Text    = Metodes.GlobalData().result.deaths;
                txtRecovered.Text = Metodes.GlobalData().result.recovered;
                lblDate.Text      = Metodes.GlobalData().date;

                ChartFill();
            }

            if (Valstis.Text == "Latvija")
            {
                foreach (var item in Metodes.AllCountries().result)
                {
                }
            }
        }
Example #2
0
 private void ChartFill()
 {
     this.Chart.Series["Saslimuši"].Points.AddXY("Pasaule", Metodes.GlobalData().result.confirmed);
     this.Chart.Series["Miruši"].Points.AddXY("Pasaule", Metodes.GlobalData().result.deaths);
     this.Chart.Series["Atveseļojušies"].Points.AddXY("Pasaule", Metodes.GlobalData().result.recovered);
 }