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