示例#1
0
        private async Task ExecuteSearchPicturesCommand(string searchTerm)
        {
            Pictures.Clear();
            var pictures = await PicturesDataStore.GetItemsAsync(searchTerm).ConfigureAwait(false);

            Pictures = new ObservableCollection <Picture>(pictures);
        }
示例#2
0
        private async Task ExectueLoadPicturesCommand()
        {
            Pictures.Clear();
            var pictures = await PicturesDataStore.GetItemsAsync().ConfigureAwait(false);

            Pictures = new ObservableCollection <Picture>(pictures);
        }
示例#3
0
 private async Task ExecuteDeletePictureCommand(int pictureId)
 {
     await PicturesDataStore.DeleteItemAsync(pictureId).ConfigureAwait(false);
 }