private async void Show_Click(object sender, RoutedEventArgs e) { PhotoHandle handle = new PhotoHandle(); // p = new PhotoHandle(); photo = await handle.Get_PhotoFile(); PhotoShow.ItemsSource = photo; }
private async void Delete_Click(object sender, RoutedEventArgs e) { PhotoHandle handle=new PhotoHandle (1); photo = await handle.Delete_Photo(); PhotoShow.ItemsSource = photo; }
private async void Delete_Click(object sender, RoutedEventArgs e) { PhotoHandle handle = new PhotoHandle(1); photo = await handle.Delete_Photo(); PhotoShow.ItemsSource = photo; }
private async void Show_Click(object sender, RoutedEventArgs e) { PhotoHandle handle = new PhotoHandle(); // p = new PhotoHandle(); photo = await handle.Get_PhotoFile(); PhotoShow.ItemsSource = photo; }
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); }
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; }