private void ProgressChanged(DownloadOperation download) { var item = Downloads.Single(d => d.DownloadOperation == download); item.BytesReceived = download.Progress.BytesReceived; item.TotalBytesToReceive = download.Progress.TotalBytesToReceive; if (item.TotalBytesToReceive != 0) { item.ProgressRate = item.BytesReceived / item.TotalBytesToReceive; } }