private void PrepareUploader(Uploader currentUploader) { uploader = currentUploader; uploader.BufferSize = (int)Math.Pow(2, Program.Settings.BufferSizePower) * 1024; uploader.ProgressChanged += uploader_ProgressChanged; }
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); }