コード例 #1
0
 public void StartUpload(IEnumerable <FileInfo> files)
 {
     foreach (var file in files)
     {
         var uploadPhotoViewModel = new UploadPhotoViewModel(file, Album.Id);
         uploadPhotoViewModel.UploadCompleted += uploadPhotoViewModel_UploadCompleted;
         uploadPhotoViewModel.UploadCanceled  += uploadPhotoViewModel_UploadCanceled;
         _pendingTasks.Enqueue(uploadPhotoViewModel);
         _archivedTasks.Add(uploadPhotoViewModel);
     }
     StartNextPendingTasks();
 }
コード例 #2
0
 public void StartUpload(IEnumerable<FileInfo> files)
 {
     foreach (var file in files)
     {
         var uploadPhotoViewModel = new UploadPhotoViewModel(file, Album.Id);
         uploadPhotoViewModel.UploadCompleted += uploadPhotoViewModel_UploadCompleted;
         uploadPhotoViewModel.UploadCanceled += uploadPhotoViewModel_UploadCanceled;
         _pendingTasks.Enqueue(uploadPhotoViewModel);
         _archivedTasks.Add(uploadPhotoViewModel);
     }
     StartNextPendingTasks();
 }