public bool UpdateDownloadNotify(long lTotalSize, long lAlreadyDownloadSize, long lIncreSize, object data) { Progress.UpdateInt(lAlreadyDownloadSize, lTotalSize); if (Progress.GetStatus() != ProgressHelper.STATUS.RUNNING) { return(false); } CountIncreSize += lIncreSize; long consumeTime = TimeHelper.CalcConsumeTime(StartTime); if (consumeTime >= 1000) { DownloadSpeedString = AIGS.Common.Convert.ConverStorageUintToString(CountIncreSize, AIGS.Common.Convert.UnitType.BYTE) + "/S"; CountIncreSize = 0; StartTime = TimeHelper.GetCurrentTime(); } CurSizeString = AIGS.Common.Convert.ConverStorageUintToString(lAlreadyDownloadSize, AIGS.Common.Convert.UnitType.BYTE); if (TotalSizeString.IsBlank()) { TotalSizeString = AIGS.Common.Convert.ConverStorageUintToString(lTotalSize, AIGS.Common.Convert.UnitType.BYTE); } return(true); }