Exemplo n.º 1
0
        private void OnDownloadProgressChanged(object sender, DownloadFileProgressChangedArgs args)
        {
            if (BytesReceived < args.BytesReceived)
            {
                ////bytes growing? we have connection!
                attemptNumber = 1;
            }

            BytesReceived       = args.BytesReceived;
            TotalBytesToReceive = args.TotalBytesToReceive;

            DownloadProgressChanged.SafeInvoke(sender, args);
        }
Exemplo n.º 2
0
        private void OnDownloadProgressChanged(object sender, DownloadProgressChangedEventArgs args)
        {
            DownloadFileProgressChangedArgs e = new DownloadFileProgressChangedArgs(args.ProgressPercentage, args.BytesReceived, args.TotalBytesToReceive);

            OnDownloadProgressChanged(sender, e);
        }