public CountryDetailsViewModel()
        {
            XmlCountryService countryRepository = new XmlCountryService();
            CountryData country = countryRepository.GetCountryById(Navigation.Id);

            DataContext = country;
        }
Пример #2
0
 public MainPageViewModel()
 {
     XmlCountryService countryRepository = new XmlCountryService();
     ListItemsSource = countryRepository.GetCountryList();
 }