示例#1
0
 private async Task Initilise()
 {
     if (AppBootstrapper.Albums.Items.Count == 0)
         await AppBootstrapper.Albums.Load();
     Albums = AppBootstrapper.Albums.Items;
     SelectedAlbum = Albums[0];
 }
示例#2
0
 public async Task Upload(IStorageFile f, Album album)
 {
     var cts = new CancellationTokenSource();
     var progressCallback = new Progress<UploadOperation>((o) => UploadProgress(o));
     Client.Upload(f, album.id).StartAsync().AsTask(cts.Token, progressCallback);
 }