Example #1
0
        private async void btnCleanup_Click(object sender, RoutedEventArgs e)
        {
            await FileListHelper.Cleanup();

            // Enumerate the files and folders in the local folder.
            await ListFilesInLocalFolderAsync();
        }
Example #2
0
        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));
        }
Example #3
0
        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));
        }
Example #4
0
 // 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();
 }