void client_DownloadCompleted(object sender, DownloadCompletedEventArgs e)
{
if (e.Error != null
&& this.Status != DownloadStatus.Canceling
&& this.Status != DownloadStatus.Canceled)
{
this.Cancel();
this.OnDownloadCompleted(new DownloadCompletedEventArgs(
null,
this.DownloadedSize,
this.TotalSize,
this.TotalUsedTime,
e.Error));
}
}