Beispiel #1
0
 public CollectionsMainViewModel(
     IDataApiClient dataApiClient,
     DataVisualizer dataVisualizer,
     IReadonlyObjectDatabase <UserProfile> userDatabase,
     IClipboard clipboard)
 {
     this.dataApiClient      = dataApiClient;
     this.dataVisualizer     = dataVisualizer;
     this.clipboard          = clipboard;
     collectionSwitcher      = new CollectionSwitcher(SwitchToCollection, Constants.DefaultQuery);
     CollectionListViewModel = new CollectionListViewModel(dataApiClient, userDatabase);
     CollectionListViewModel.PropertyChanged += CollectionListViewModel_PropertyChanged;
 }
Beispiel #2
0
 public async Task Reload()
 {
     await CollectionListViewModel.Reload();
 }