nyk0r

OH SHI~

Apr 26th, 2011
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. _uploaders = new List<GenericZippedPartedTableUploader>();
  2. foreach (var file in _files)
  3. {
  4.     var uploader = (GenericZippedPartedTableUploader)Activator
  5.             .CreateInstance(
  6.                         file.Uploader,
  7.                         new object[] {
  8.                 _context,
  9.                 file.Data,
  10.                 new CancelledTestDelegate(IsCancelled), file.Name, log },
  11.                             null);
  12.         uploader.Progress +=
  13.                     (a, b) =>
  14.             this.ReportProgress((int)Math.Floor((double)b.AploadedCount /
  15.             b.FullCount * 100), file.Bar);
  16.         _uploaders.Add(uploader);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment