private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs args) { if (BackyardMattersModel != null) { BackyardMattersModel.GetShareContent(args.Request); } }
/// <summary> /// Refresh ViewModel items asynchronous /// </summary> public async Task RefreshData(bool isNetworkAvailable) { var refreshTasks = new Task[] { EnvironemtalNewsModel.RefreshItems(isNetworkAvailable), GoingGreenModel.RefreshItems(isNetworkAvailable), LivingGreenModel.RefreshItems(isNetworkAvailable), BackyardMattersModel.RefreshItems(isNetworkAvailable), EnvironmentMattersModel.RefreshItems(isNetworkAvailable), VideoTipsModel.RefreshItems(isNetworkAvailable), }; await Task.WhenAll(refreshTasks); }