private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs args) { if (PvponlineModel != null) { PvponlineModel.GetShareContent(args.Request); } }
/// <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); }
/// <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); }