Example #1
0
 private async  void Show_Click(object sender, RoutedEventArgs e)
 {
     PhotoHandle handle = new PhotoHandle();
     //     p = new PhotoHandle();
     photo = await handle.Get_PhotoFile();
     PhotoShow.ItemsSource = photo;
 }
Example #2
0
 private async  void Delete_Click(object sender, RoutedEventArgs e)
 {
    
     PhotoHandle  handle=new PhotoHandle (1);
     photo = await handle.Delete_Photo();
     PhotoShow.ItemsSource = photo;
 }
Example #3
0
        private async void Delete_Click(object sender, RoutedEventArgs e)
        {
            PhotoHandle handle = new PhotoHandle(1);

            photo = await handle.Delete_Photo();

            PhotoShow.ItemsSource = photo;
        }
Example #4
0
        private async void Show_Click(object sender, RoutedEventArgs e)
        {
            PhotoHandle handle = new PhotoHandle();

            //     p = new PhotoHandle();
            photo = await handle.Get_PhotoFile();

            PhotoShow.ItemsSource = photo;
        }
Example #5
0
        public async Task <List <PhotoHandle> > Get_PhotoFile()
        {
            PhotoHandle p;
            var         localFolder = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFolderAsync("Assets");

            foreach (StorageFile file in await localFolder.GetFilesAsync())
            {
                p           = new PhotoHandle();
                p.photoname = file.Path;
                photoName.Add(p);
            }
            return(photoName);
        }
Example #6
0
        public async Task<List<PhotoHandle>> Get_PhotoFile()
        {
            PhotoHandle p ;
            var localFolder = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFolderAsync("Assets");
            foreach (StorageFile file in await localFolder.GetFilesAsync())
            {
                p = new PhotoHandle();
                p.photoname = file.Path;
                photoName.Add(p);
            }
            return photoName;


        }