protected void Progress(IDownloadEventArgs progressArg) { if (OnProgress == null) { return; } OnProgress(this, progressArg); }
public void HandleProgress(object sender, IDownloadEventArgs e) { var size = (accumulate += e.ReadBytes).GetBeautifiedByteSize(); task.Message = String.Format(Properties.Resources.COMMAND_MSG_PROGRESS_DOWNLOAD, size); }