private ArrayList GetData()
        {
            ArrayList source = new ArrayList();

            Country sourceItem = new Country();
            sourceItem.name = "Austria";
            sourceItem.capital = "Vienna";
            sourceItem.population = 8507786;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Belgium";
            sourceItem.capital = "Brussels";
            sourceItem.population = 11203992;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Bulgaria";
            sourceItem.capital = "Sofia";
            sourceItem.population = 7245677;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Croatia";
            sourceItem.capital = "Zagreb";
            sourceItem.population = 4246700;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Cyprus";
            sourceItem.capital = "Nicosia";
            sourceItem.population = 858000;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Czech Republic";
            sourceItem.capital = "Prague";
            sourceItem.population = 10512419;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Denmark";
            sourceItem.capital = "Copenhagen";
            sourceItem.population = 5627235;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Estonia";
            sourceItem.capital = "Tallinn";
            sourceItem.population = 1315819;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Finland";
            sourceItem.capital = "Helsinki";
            sourceItem.population = 5451270;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "France";
            sourceItem.capital = "Paris";
            sourceItem.population = 65856609;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Germany";
            sourceItem.capital = "Berlin";
            sourceItem.population = 80780000;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Greece";
            sourceItem.capital = "Athens";
            sourceItem.population = 10992589;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Hungary";
            sourceItem.capital = "Budapest";
            sourceItem.population = 9879000;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Ireland";
            sourceItem.capital = "Dublin";
            sourceItem.population = 4604029;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Italy";
            sourceItem.capital = "Rome";
            sourceItem.population = 60782668;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Latvia";
            sourceItem.capital = "Riga";
            sourceItem.population = 2001468;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Lithuania";
            sourceItem.capital = "Vilnius";
            sourceItem.population = 2943472;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Luxembourg";
            sourceItem.capital = "Luxembourg";
            sourceItem.population = 549680;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Malta";
            sourceItem.capital = "Valletta";
            sourceItem.population = 425384;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "The Netherlands";
            sourceItem.capital = "Amsterdam";
            sourceItem.population = 16829289;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Poland";
            sourceItem.capital = "Warsaw";
            sourceItem.population = 38495659;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Portugal";
            sourceItem.capital = "Lisbon";
            sourceItem.population = 10427301;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Romania";
            sourceItem.capital = "Bucharest";
            sourceItem.population = 19942642;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Slovakia";
            sourceItem.capital = "Bratislava";
            sourceItem.population = 5415949;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Slovenia";
            sourceItem.capital = "Ljubljana";
            sourceItem.population = 2061085;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Spain";
            sourceItem.capital = "Madrid";
            sourceItem.population = 46507760;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "Sweden";
            sourceItem.capital = "Stockholm";
            sourceItem.population = 9644864;

            source.Add(sourceItem);

            sourceItem = new Country();
            sourceItem.name = "United Kingdom";
            sourceItem.capital = "London";
            sourceItem.population = 64308261;

            source.Add(sourceItem);

            return source;
        }
Esempio n. 2
0
        private ArrayList GetData()
        {
            ArrayList source = new ArrayList();

            Country sourceItem = new Country();

            sourceItem.name       = "Austria";
            sourceItem.capital    = "Vienna";
            sourceItem.population = 8507786;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Belgium";
            sourceItem.capital    = "Brussels";
            sourceItem.population = 11203992;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Bulgaria";
            sourceItem.capital    = "Sofia";
            sourceItem.population = 7245677;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Croatia";
            sourceItem.capital    = "Zagreb";
            sourceItem.population = 4246700;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Cyprus";
            sourceItem.capital    = "Nicosia";
            sourceItem.population = 858000;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Czech Republic";
            sourceItem.capital    = "Prague";
            sourceItem.population = 10512419;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Denmark";
            sourceItem.capital    = "Copenhagen";
            sourceItem.population = 5627235;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Estonia";
            sourceItem.capital    = "Tallinn";
            sourceItem.population = 1315819;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Finland";
            sourceItem.capital    = "Helsinki";
            sourceItem.population = 5451270;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "France";
            sourceItem.capital    = "Paris";
            sourceItem.population = 65856609;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Germany";
            sourceItem.capital    = "Berlin";
            sourceItem.population = 80780000;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Greece";
            sourceItem.capital    = "Athens";
            sourceItem.population = 10992589;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Hungary";
            sourceItem.capital    = "Budapest";
            sourceItem.population = 9879000;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Ireland";
            sourceItem.capital    = "Dublin";
            sourceItem.population = 4604029;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Italy";
            sourceItem.capital    = "Rome";
            sourceItem.population = 60782668;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Latvia";
            sourceItem.capital    = "Riga";
            sourceItem.population = 2001468;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Lithuania";
            sourceItem.capital    = "Vilnius";
            sourceItem.population = 2943472;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Luxembourg";
            sourceItem.capital    = "Luxembourg";
            sourceItem.population = 549680;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Malta";
            sourceItem.capital    = "Valletta";
            sourceItem.population = 425384;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "The Netherlands";
            sourceItem.capital    = "Amsterdam";
            sourceItem.population = 16829289;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Poland";
            sourceItem.capital    = "Warsaw";
            sourceItem.population = 38495659;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Portugal";
            sourceItem.capital    = "Lisbon";
            sourceItem.population = 10427301;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Romania";
            sourceItem.capital    = "Bucharest";
            sourceItem.population = 19942642;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Slovakia";
            sourceItem.capital    = "Bratislava";
            sourceItem.population = 5415949;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Slovenia";
            sourceItem.capital    = "Ljubljana";
            sourceItem.population = 2061085;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Spain";
            sourceItem.capital    = "Madrid";
            sourceItem.population = 46507760;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "Sweden";
            sourceItem.capital    = "Stockholm";
            sourceItem.population = 9644864;

            source.Add(sourceItem);

            sourceItem            = new Country();
            sourceItem.name       = "United Kingdom";
            sourceItem.capital    = "London";
            sourceItem.population = 64308261;

            source.Add(sourceItem);

            return(source);
        }