private void RunThread() { while (IsRunning) { _currentFile = _downloadManager.Files.Dequeue(); if (!_currentFile.Equals(default(FileDownload))) { _client.DownloadFile(_currentFile.Url, GetCachePath() + _currentFile.Name); } } }
private void RunThread() { while (IsRunning) { _currentFile = _downloadManager.Files.Dequeue(); if (!_currentFile.Equals(default(FileDownload))) { _client.DownloadFile(_currentFile.Url, GetCachePath() + _currentFile.Name); } } }