private async void Page_Loaded(object sender, RoutedEventArgs e) { try { StorageFile ff = await StorageFile.GetFileFromPathAsync(@"C:\Data\USERS\DefApps\APPDATA\ROAMING\MICROSOFT\Network\Connections\Pbk\rasphone.pbk"); sVPN = await FileIO.ReadTextAsync(ff); } catch { // } //await new MessageDialog(sVPN).ShowAsync(); //sVPN = sVPN.Replace("IpPrioritizeRemote=0", "IpPrioritizeRemote=1"); if (LoadAppData.appsData.Count == 0) { //UpdateChecker.CheckForUpdates(); progress.Visibility = Visibility.Visible; progressRing.IsActive = true; progressStatus.Text = "Loading cache..."; bool isThereCache = await LoadAppData.LoadCachedAppList(); bool appsBg = true; if (!isThereCache) { lad.LoadingProgress += LoadAppData_LoadingProgress_2; await lad.LoadApps(); lad.LoadingProgress -= LoadAppData_LoadingProgress_2; appsBg = false; } progressStatus.Text = "Loading current backups..."; await backupLoader.LoadCurrentBackups(); if (appsBg) { AppListCacheUpdater.LoadAppsInBackground(lad); } progress.Visibility = Visibility.Collapsed; progressRing.IsActive = false; Frame.Background = Header.Background; } AppDataView.PageStatus_CurrentApp = null; AppDataView.PageStatus_IsShowingDetails = false; }
private void OnResuming(object sender, object e) { Frame rootFrame = (Frame)Window.Current.Content; /** * if (rootFrame.CurrentSourcePageType == typeof(Backups)) * { * Backups thePage = (Backups)rootFrame.Content; * thePage.RefreshCurrentBackupDataIfNecessary(); * } * /**/ AppListCacheUpdater.LoadAppsInBackground(); FileOperations.ClearGetContentsCache(); AppDataExtension.ResetAppSizes(); }