This commit is contained in:
Serraniel 2017-05-20 10:23:31 +02:00
parent c52dc3ddbd
commit 2a5ff86ba9
2 changed files with 4 additions and 1 deletions

View file

@ -255,6 +255,7 @@ namespace DML.Application.Classes
var wc = new WebClient();
Debug($"Starting downloading of attachment {a.Id}...");
wc.DownloadFile(new Uri(a.Url), fileName);
Debug($"Downloaded attachment {a.Id}.");

View file

@ -1,4 +1,5 @@
using System.Diagnostics;
using System;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
@ -229,6 +230,7 @@ namespace DML.Application
var done = Core.Scheduler.AttachmentsDownloaded;
var progress = totalAttachments > 0 ? (int)(100 * done / totalAttachments) : 0;
progress = Math.Min(Math.Max(0, progress), 100);
pgbProgress.Maximum = 100;
pgbProgress.Value = progress;