int ToPercent(TransferProgress progress)
 {
     return (int)((progress.Current * 100) / progress.Total);
 }
 void RaiseDownload(TransferProgress progress)
 {
     var downloadHandler = Download;
     if (downloadHandler != null)
         downloadHandler(progress);
 }