private void ThreadWatcher_DownloadEnd(ThreadWatcher watcher, DownloadEndEventArgs args) { lock (_downloadProgresses) { DownloadProgressInfo info; if (!_downloadProgresses.TryGetValue(args.DownloadID, out info)) { return; } info.EndTicks = TickCount.Now; info.DownloadedSize = args.DownloadedSize; info.TotalSize = args.DownloadedSize; _downloadProgresses[args.DownloadID] = info; } }
private void OnDownloadEnd(DownloadEndEventArgs e) { try { DownloadEnd?.Invoke(this, e); } catch { } }