public static void DownloadProblemDatabase() { if (_DownloadingProblemDatabase) { return; } _DownloadingProblemDatabase = true; //problem database string url = "http://uhunt.felix-halim.net/api/p"; string file = LocalDirectory.GetProblemInfoFile(); DownloadFileAsync(url, file, false, Priority.High, __DownloadProblemDatabaseProgress, __DownloadProblemDatabaseCompleted, 1); //problem categories url = "http://uhunt.felix-halim.net/api/cpbook/3"; file = LocalDirectory.GetCategoryPath(); DownloadFileAsync(url, file, true, Priority.High, __DownloadProblemDatabaseProgress, __DownloadProblemCategoryCompleted, 1); }