Task[] tasks = new Task[3]; tasks[0] = new Task(() => { SocketPackage socketPackage = ClassWeb.HttpRequest(UpdateFile.updateUrl + UpdateFile.exeFile + ".md5", "GET", null, null, true, false, true, null, null, null, null, null, null, null, null, 0, null); if (string.IsNullOrEmpty(md5) && Regex.IsMatch(socketPackage.Html, @"^[A-Z0-9]{32}$")) { md5 = socketPackage.Html; Update(autoupdate, md5, UpdateFile.updateUrl + UpdateFile.exeFile, UpdateFile.updateUrl + UpdateFile.pdfFile, parentForm); } });