void task_DownloadingFinished(SandSoft.Downloader.DownloadTask task) { Console.WriteLine(); Console.WriteLine("Status: " + task.TaskStatus); Console.WriteLine("Error: " + task.Error); if (task.Result != null) { Console.WriteLine("Result: " + task.Result.Length); //Console.WriteLine(task.Result); } if (redownload > 0) { --redownload; System.Threading.Thread.Sleep(200); Console.WriteLine("\n\nRedownloading..."); task.StartDownload(); } }