private void fileSave(UpdateFile updateFile) { lock (this.locker) { this.SendMessage(FOUpdaterMessage.General, Strings.Saving.Replace("%s", updateFile.FileName)); } }
private void fileComplete(UpdateFile updateFile) { lock (this.locker) { this.SendMessage(FOUpdaterMessage.Detailed, null); this.SendProgress(FOUpdaterProgress.FileValue, 0); } }
private void fileProgress(UpdateFile updateFile, long currentBytes, long totalBytes, uint percent) { lock (this.locker) { this.SendMessage(FOUpdaterMessage.Detailed, Strings.DownloadingInfo .Replace("%c", ToHumanString(currentBytes, true)) .Replace("%t", ToHumanString(totalBytes, true)) .Replace("%p", "" + percent) ); this.SendProgress(FOUpdaterProgress.FileValue, (uint)currentBytes); this.SendProgress(FOUpdaterProgress.TotalValue, progressTotal + (uint)currentBytes); } }
private void fileSave( UpdateFile updateFile ) { lock( this.locker ) { this.SendMessage( FOUpdaterMessage.General, Strings.Saving.Replace( "%s", updateFile.FileName ) ); } }
private void fileProgress( UpdateFile updateFile, long currentBytes, long totalBytes, uint percent ) { lock( this.locker ) { this.SendMessage( FOUpdaterMessage.Detailed, Strings.DownloadingInfo .Replace( "%c", ToHumanString( currentBytes, true ) ) .Replace( "%t", ToHumanString( totalBytes, true ) ) .Replace( "%p", "" + percent ) ); this.SendProgress( FOUpdaterProgress.FileValue, (uint)currentBytes ); this.SendProgress( FOUpdaterProgress.TotalValue, progressTotal + (uint)currentBytes ); } }
private void fileComplete( UpdateFile updateFile ) { lock( this.locker ) { this.SendMessage( FOUpdaterMessage.Detailed, null ); this.SendProgress( FOUpdaterProgress.FileValue, 0 ); } }