Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _uploaders = new List<GenericZippedPartedTableUploader>();
- foreach (var file in _files)
- {
- var uploader = (GenericZippedPartedTableUploader)Activator
- .CreateInstance(
- file.Uploader,
- new object[] {
- _context,
- file.Data,
- new CancelledTestDelegate(IsCancelled), file.Name, log },
- null);
- ProgressBar bar = file.Bar;
- uploader.Progress +=
- (a, b) =>
- this.ReportProgress((int)Math.Floor((double)b.AploadedCount /
- b.FullCount * 100), bar);
- _uploaders.Add(uploader);
- }
Advertisement
Add Comment
Please, Sign In to add comment