private async void btnCleanup_Click(object sender, RoutedEventArgs e) { await FileListHelper.Cleanup(); // Enumerate the files and folders in the local folder. await ListFilesInLocalFolderAsync(); }
private async Task ListFilesInLocalFolderAsync() { // Enumerate the files and folders in the local folder. output = await FileListHelper.EnumerateFilesAndFolders(localFolder); NavigationService.Navigate(new Uri(OUTPUT_PAGE_URI, UriKind.Relative)); }
private async void btnGetInstallationFolder_Click(object sender, RoutedEventArgs e) { // Get the installation folder. StorageFolder installationFolder = Package.Current.InstalledLocation; // Enumerate the files and folders in the installation folder. output = await FileListHelper.EnumerateFilesAndFolders(installationFolder); NavigationService.Navigate(new Uri(OUTPUT_PAGE_URI, UriKind.Relative)); }
// Code to execute when the application is closing (eg, user hit Back) // This code will not execute when the application is deactivated private async void Application_Closing(object sender, ClosingEventArgs e) { await FileListHelper.Cleanup(); }