private static void DownloadImageWSpecifiedFolder(WebClient webClient, string url, string folder) { webClient.DownloadFile(new Uri(url), folder + "/" + GenerateRandomName.Generate() + ".jpeg"); }
private static void DownloadImageWDefaultFolder(WebClient webClient, string url) { if (Validator.IsValidDefaultFolder()) { webClient.DownloadFile(new Uri(url), DefaultFolder.GetDefaultPath() + @"\" + GenerateRandomName.Generate() + ".jpeg"); return; } else { Console.WriteLine("You still doesn't configured a default folder path. Try '" + Strings.SETPATH + "'!"); } }