public Task<StatDataSets> GetAllStatDataSetsAsync() { return Task.Run<StatDataSets>(() => { StatDataSets oRet = null; var pMan = this.DataService; if (pMan != null) { var xx = pMan.GetAllStatDataSets(); if ((xx != null) && (xx.Item1 != null) && (xx.Item2 == null)) { oRet = new StatDataSets(xx.Item1); } }// pMan return oRet; }); }
}// RefreshGraphData public async void RefreshDataSets() { var pMan = this.DataService; if (pMan != null) { this.StatDataSets = await StatDataSet.GetAllDataSetAsync(pMan); }// pMan }// RefreshDataSets