internal async Task <IEnumerable <MobileServiceFile> > GetImageFilesAsync(VideoItem todoItem)
 {
     return(await this.videoITemTable.GetFilesAsync(todoItem));
 }
        internal async Task <MobileServiceFile> AddImage(VideoItem todoItem, string imagePath)
        {
            string targetPath = await FileHelper.CopyVideoItemFileAsync(todoItem.Id, imagePath);

            return(await this.videoITemTable.AddFileAsync(todoItem, Path.GetFileName(targetPath)));
        }
 internal async Task DeleteImage(VideoItem todoItem, MobileServiceFile file)
 {
     await this.videoITemTable.DeleteFileAsync(file);
 }
Example #4
0
        // Data methods
        async Task AddItem(VideoItem item)
        {
            await manager.SaveTaskAsync(item);

            todoList.ItemsSource = await manager.GetVideoItemsAsync();
        }