Beispiel #1
0
 /// <summary>
 /// Load ViewModel items asynchronous
 /// </summary>
 public async Task LoadDataAsync(bool forceRefresh = false)
 {
     var loadTasks = new Task[]
     {
         AboutModel.LoadItemsAsync(forceRefresh),
         PrabathsBlogModel.LoadItemsAsync(forceRefresh),
         JaliyasBlogModel.LoadItemsAsync(forceRefresh),
         ChamindasBlogModel.LoadItemsAsync(forceRefresh),
         MalinsBlogModel.LoadItemsAsync(forceRefresh),
     };
     await Task.WhenAll(loadTasks);
 }
Beispiel #2
0
 /// <summary>
 /// Load ViewModel items asynchronous
 /// </summary>
 public async Task LoadDataAsync(bool forceRefresh = false)
 {
     var loadTasks = new Task[]
     {
         AboutModel.LoadItemsAsync(forceRefresh),
         OnlineLecturesModel.LoadItemsAsync(forceRefresh),
         FreeBooksModel.LoadItemsAsync(forceRefresh),
         EngineeringToolsModel.LoadItemsAsync(forceRefresh),
         EngineeringMythsModel.LoadItemsAsync(forceRefresh),
         EngineersMemeModel.LoadItemsAsync(forceRefresh),
     };
     await Task.WhenAll(loadTasks);
 }