private void ClientDownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
 {
     this.Progress = ((double) e.ProgressPercentage) / 100.0;
     if (this.OnPreLoadingProgress != null)
     {
         PreLoadingProgressEventArgs args = new PreLoadingProgressEventArgs {
             Item = this,
             Message = "Loading...",
             Progress = ((double) e.ProgressPercentage) / 100.0
         };
         this.OnPreLoadingProgress(this, args);
     }
 }
 private void PreLoadableOnPreLoadingProgress(object sender, PreLoadingProgressEventArgs e)
 {
     if (this.OnItemProgress != null)
     {
         this.OnItemProgress(this, e);
     }
 }
Example #3
0
 void queue_OnItemProgress(object sender, PreLoadingProgressEventArgs e)
 {
     Debug.WriteLine(string.Format("loading {0:#}%", queue.TotalProgress * 100));
     this.loading.loadingText.Text = string.Format("loading {0:#}%", queue.TotalProgress*100);
     Debug.WriteLine(string.Format("blur={0}", (1 - queue.TotalProgress) * 30));
     loading.SetProgress(queue.TotalProgress);
 }