Beispiel #1
0
        public void DownloadFileAsync(Uri uri, string customSavePath = null)
        {
            this.Filename           = customSavePath ?? Filename;
            this.ProgressPercentage = 0;

            Wrapped.DownloadProgressChanged += (s, e) => OnDownloadProgressChanged(e);
            Wrapped.DownloadFileCompleted   += (s, e) => OnDownloadFileCompleted(e);
            Wrapped.DownloadFileAsync(uri, this.Filename);
            Status = RangeWebClientStatus.Running;
        }