Beispiel #1
0
 public PopulationViewModel()
 {
     this.PopulationDetails = new ObservableCollection <PopulationDetail>();
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Asia", Country = "Indonesia", Growth = 3, Population = 237641326, StrPopulation = "237.6 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Asia", Country = "Russia", Growth = 2, Population = 152518015, StrPopulation = "152.5 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Asia", Country = "Malaysia", Growth = 1, Population = 29672000, StrPopulation = "29.7 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "North America", Country = "United States", Growth = 4, Population = 315645000, StrPopulation = "315.6 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "North America", Country = "Mexico", Growth = 2, Population = 112336538, StrPopulation = "112.3 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "North America", Country = "Canada", Growth = 1, Population = 35056064, StrPopulation = "35.1 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "South America", Country = "Colombia", Growth = 1, Population = 47000000, StrPopulation = "47 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "South America", Country = "Brazil", Growth = 3, Population = 193946886, StrPopulation = "193.9 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Africa", Country = "Nigeria", Growth = 2, Population = 170901000, StrPopulation = "170.9 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Africa", Country = "Egypt", Growth = 1, Population = 83661000, StrPopulation = "83 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Europe", Country = "Germany", Growth = 1, Population = 81993000, StrPopulation = "82 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Europe", Country = "France", Growth = 1, Population = 65605000, StrPopulation = "65.6 M"
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Europe", Country = "UK", Growth = 1, Population = 63181775, StrPopulation = "63.2 M"
     });
 }
 public PopulationViewModel()
 {
     this.PopulationDetails = new ObservableCollection <PopulationDetail>();
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Asia", Country = "Indonesia", Growth = 3, Population = 237641326
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Asia", Country = "Russia", Growth = 2, Population = 152518015
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Asia", Country = "Malaysia", Growth = 1, Population = 29672000
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "North America", Country = "United States", Growth = 4, Population = 315645000
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "North America", Country = "Mexico", Growth = 2, Population = 112336538
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "North America", Country = "Canada", Growth = 1, Population = 35056064
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "South America", Country = "Colombia", Growth = 1, Population = 47000000
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "South America", Country = "Brazil", Growth = 3, Population = 193946886
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Africa", Country = "Nigeria", Growth = 2, Population = 170901000
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Africa", Country = "Egypt", Growth = 1, Population = 83661000
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Europe", Country = "Germany", Growth = 1, Population = 81993000
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Europe", Country = "France", Growth = 1, Population = 65605000
     });
     PopulationDetails.Add(new PopulationDetail()
     {
         Continent = "Europe", Country = "UK", Growth = 1, Population = 63181775
     });
 }
Beispiel #3
0
 public BarChartViewModel()
 {
     this.PopulationDetails = new ObservableCollection <Population>();
     PopulationDetails.Add(new Population()
     {
         Country = "USA", FY2010 = 310.3
     });
     PopulationDetails.Add(new Population()
     {
         Country = "Indonesia", FY2010 = 239.8
     });
     PopulationDetails.Add(new Population()
     {
         Country = "Nigeria", FY2010 = 158.4
     });
     PopulationDetails.Add(new Population()
     {
         Country = "Bangladesh", FY2010 = 148.6
     });
     PopulationDetails.Add(new Population()
     {
         Country = "Russia", FY2010 = 142.9
     });
     PopulationDetails.Add(new Population()
     {
         Country = "Mexico", FY2010 = 113.4
     });
     PopulationDetails.Add(new Population()
     {
         Country = "Germany", FY2010 = 82.3
     });
     PopulationDetails.Add(new Population()
     {
         Country = "Egypt", FY2010 = 81.1
     });
     PopulationDetails.Add(new Population()
     {
         Country = "France", FY2010 = 62.7
     });
     PopulationDetails.Add(new Population()
     {
         Country = "UK", FY2010 = 62.1
     });
 }