private void InitializeViewModels()
 {
     ViewModels = new ObservableCollection<ViewModel>();
     var albumsModel = new AlbumsViewModel();
     albumsModel.IsSelectionEnabled = false;
     albumsModel.Initialize(cts.Token);
     var contactsModel = new ContactsViewModel();
     contactsModel.IsSelectionEnabled = true;
     contactsModel.Initialize(cts.Token);
     ViewModels.Add(albumsModel);
     ViewModels.Add(contactsModel);
   
 }
示例#2
0
        private void InitializeViewModels()
        {
            ViewModels = new ObservableCollection <ViewModel>();
            var albumsModel = new AlbumsViewModel();

            albumsModel.IsSelectionEnabled = false;
            albumsModel.Initialize(cts.Token);
            var contactsModel = new ContactsViewModel();

            contactsModel.IsSelectionEnabled = true;
            contactsModel.Initialize(cts.Token);
            ViewModels.Add(albumsModel);
            ViewModels.Add(contactsModel);
        }