Beispiel #1
0
 private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs args)
 {
     if (HowStuffWorksModel != null)
     {
         HowStuffWorksModel.GetShareContent(args.Request);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Refresh ViewModel items asynchronous
 /// </summary>
 public async Task RefreshData(bool isNetworkAvailable)
 {
     var refreshTasks = new Task[]
     {
         HowStuffWorksModel.RefreshItems(isNetworkAvailable),
         VideosModel.RefreshItems(isNetworkAvailable),
         BlogsModel.RefreshItems(isNetworkAvailable),
     };
     await Task.WhenAll(refreshTasks);
 }
Beispiel #3
0
 /// <summary>
 /// Load ViewModel items asynchronous
 /// </summary>
 public async Task LoadData(bool isNetworkAvailable)
 {
     var loadTasks = new Task[]
     {
         HowStuffWorksModel.LoadItems(isNetworkAvailable),
         VideosModel.LoadItems(isNetworkAvailable),
         BlogsModel.LoadItems(isNetworkAvailable),
     };
     await Task.WhenAll(loadTasks);
 }