Exemplo n.º 1
0
 private void fileSave(UpdateFile updateFile)
 {
     lock (this.locker)
     {
         this.SendMessage(FOUpdaterMessage.General, Strings.Saving.Replace("%s", updateFile.FileName));
     }
 }
Exemplo n.º 2
0
 private void fileComplete(UpdateFile updateFile)
 {
     lock (this.locker)
     {
         this.SendMessage(FOUpdaterMessage.Detailed, null);
         this.SendProgress(FOUpdaterProgress.FileValue, 0);
     }
 }
Exemplo n.º 3
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);
     }
 }
Exemplo n.º 4
0
 private void fileSave( UpdateFile updateFile )
 {
     lock( this.locker )
     {
         this.SendMessage( FOUpdaterMessage.General, Strings.Saving.Replace( "%s", updateFile.FileName ) );
     }
 }
Exemplo n.º 5
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 );
     }
 }
Exemplo n.º 6
0
 private void fileComplete( UpdateFile updateFile )
 {
     lock( this.locker )
     {
         this.SendMessage( FOUpdaterMessage.Detailed, null );
         this.SendProgress( FOUpdaterProgress.FileValue, 0 );
     }
 }