Fixes
This commit is contained in:
parent
c52dc3ddbd
commit
2a5ff86ba9
|
@ -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}.");
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue