示例#1
0
 /// <summary>
 /// Refresh ViewModel items asynchronous
 /// </summary>
 public async Task RefreshData(bool isNetworkAvailable)
 {
     var refreshTasks = new Task[]
     {
         TheOatmealModel.RefreshItems(isNetworkAvailable),
         GarfieldGarfieldModel.RefreshItems(isNetworkAvailable),
         XKCDModel.RefreshItems(isNetworkAvailable),
         SatMorningBreakfastCerealModel.RefreshItems(isNetworkAvailable),
         NuklearPowerModel.RefreshItems(isNetworkAvailable),
     };
     await Task.WhenAll(refreshTasks);
 }