示例#1
0
 private void PrepareUploader(Uploader currentUploader)
 {
     uploader = currentUploader;
     uploader.BufferSize = (int)Math.Pow(2, Program.Settings.BufferSizePower) * 1024;
     uploader.ProgressChanged += uploader_ProgressChanged;
 }
示例#2
0
 private void PrepareUploader(Uploader currentUploader)
 {
     uploader = currentUploader;
     uploader.BufferSize = (int)Math.Pow(2, Program.Settings.BufferSizePower) * 1024;
     uploader.ProgressChanged += (x) => bw.ReportProgress((int)TaskProgress.ReportProgress, x);
 }