Exemple #1
0
 public void UpdateDownloadProgress(int bytesDownloaded, long downloadSize)
 {
     this.InvokeOnMainThread(() => {
         float curProgress = (float)(bytesDownloaded / 100.0);
         if (infoController != null)
         {
             infoController.UpdateDownloadProgress(bytesDownloaded, downloadSize);
         }
         else
         {
             progressView.UpdateProgress(curProgress);
         }
     });
 }
        public void UpdateDownloadProgress(int bytesDownloaded, long downloadSize)
        {
            float curProgress = (float)(bytesDownloaded / 100.0);

            if (infoController != null)
            {
                infoController.UpdateDownloadProgress(bytesDownloaded, downloadSize);
            }
            else
            {
                progressView.UpdateProgress(curProgress);
            }

//			if (isInInfoPanel) {
//				if (infoController != null) {
//					infoController.UpdateDownloadProgress (bytesDownloaded, downloadSize);
//				}
//			} else {
//				progressView.UpdateProgress (curProgress);
//			}
        }