Ejemplo n.º 1
0
        private async void SyncfolderClicked(object sender, RoutedEventArgs e)
        {
            SyncDirectoryService syncDirectoryService = new SyncDirectoryService();
            StorageFolder        folder = await syncDirectoryService.OpenPicker();

            this.folder = folder;

            UpdateInfoBox();
            GetNextImage();
        }
Ejemplo n.º 2
0
        private async void SyncFolder_Clicked(object sender, RoutedEventArgs e)
        {
            SyncDirectoryService syncDirectoryService = new SyncDirectoryService();
            StorageFolder        folder = await syncDirectoryService.OpenPicker();

            if (folder != null)
            {
                StorageApplicationPermissions.FutureAccessList.AddOrReplace("PickedFolderToken", folder);

                ImageService imageService = new ImageService();
                previewImages = await imageService.ShowImages(folder);

                ImageGallery.ItemsSource = previewImages.ToArray();
            }
        }