Esempio n. 1
0
 private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs args)
 {
     if (TheOatmealModel != null)
     {
         TheOatmealModel.GetShareContent(args.Request);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Load ViewModel items asynchronous
 /// </summary>
 public async Task LoadData(bool isNetworkAvailable)
 {
     var loadTasks = new Task[]
     {
         TheOatmealModel.LoadItems(isNetworkAvailable),
         GarfieldGarfieldModel.LoadItems(isNetworkAvailable),
         XKCDModel.LoadItems(isNetworkAvailable),
         SatMorningBreakfastCerealModel.LoadItems(isNetworkAvailable),
         NuklearPowerModel.LoadItems(isNetworkAvailable),
     };
     await Task.WhenAll(loadTasks);
 }