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);
        }