private async Task Initilise() { if (AppBootstrapper.Albums.Items.Count == 0) await AppBootstrapper.Albums.Load(); Albums = AppBootstrapper.Albums.Items; SelectedAlbum = Albums[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); }