internal void UpdateValues(long speed, long fileDownloadedSize) { Speed = speed; FileDownloadedSize = fileDownloadedSize; comms.SetProgress(this); }
internal DownloadProgress(PatchIntercomms comms, IDownloadHandler downloadHandler) { this.comms = comms; this.downloadHandler = downloadHandler; comms.SetProgress(this); }
internal FilePatchProgress(PatchIntercomms comms, string filename) { this.comms = comms; Percentage = 0; ProgressInfo = Localization.Get(StringId.UpdatingX, filename); comms.SetProgress(this); }
public void ReportProgress(string operation, long currentPosition, long total) { Percentage = (int)((double)currentPosition / total * 100.0 + 0.5); comms.SetProgress(this); }