protected override async Task OnActivate() { ; var isNetworkAvailable = NetworkInterface.GetIsNetworkAvailable(); if (!isNetworkAvailable) { MessageBox.Show("Please check your network connection"); return; } await Task.Delay(500); _themes = _themeService.GetThemes(WallpaperResource.Feeds); var t1= GetWallpaperOfTheDay(); var t2 = GetTop4WallPaperItems(); var t3 = GetCategoryItems(); try { await Task.WhenAll(t1, t2, t3, LiveTile()); } catch (Exception e) { } ProgressBarIsVisible = false; }
private Task OnActivateWork() { _dispatcher = CoreWindow.GetForCurrentThread().Dispatcher; _themes = _themeService.GetThemes(WallpaperResource.Feeds); var t1 = GetWallpaperOfTheDay(); var t2 = GetTop4WallPaperItems(); var t3 = GetCategoryItems(); return Task.WhenAll(t1, t2, t3); }