Exemplo n.º 1
0
        private void UpdateProgressOnUI(string id, int progress, double speed, long eta)
        {
            var downloadEntry = ApplicationContext.MainWindow.FindInProgressItem(id);

            if (downloadEntry != null)
            {
                downloadEntry.Progress      = progress;
                downloadEntry.DownloadSpeed = FormattingHelper.FormatSize(speed) + "/s";
                downloadEntry.ETA           = FormattingHelper.ToHMS(eta);
            }
        }