Example #1
0
        internal void UpdateValues(long speed, long fileDownloadedSize)
        {
            Speed = speed;
            FileDownloadedSize = fileDownloadedSize;

            comms.SetProgress(this);
        }
Example #2
0
        internal DownloadProgress(PatchIntercomms comms, IDownloadHandler downloadHandler)
        {
            this.comms           = comms;
            this.downloadHandler = downloadHandler;

            comms.SetProgress(this);
        }
Example #3
0
        internal FilePatchProgress(PatchIntercomms comms, string filename)
        {
            this.comms = comms;

            Percentage   = 0;
            ProgressInfo = Localization.Get(StringId.UpdatingX, filename);

            comms.SetProgress(this);
        }
Example #4
0
 public void ReportProgress(string operation, long currentPosition, long total)
 {
     Percentage = (int)((double)currentPosition / total * 100.0 + 0.5);
     comms.SetProgress(this);
 }