BetterDiscordWI.panels.Panel2.DownloadResource C# (CSharp) 메소드

DownloadResource() 개인적인 메소드

private DownloadResource ( string resource, string url ) : void
resource string
url string
리턴 void
        private void DownloadResource(string resource, string url)
        {
            AppendLog("Downloading Resource: " + resource);

            WebClient webClient = new WebClient {Headers = {["User-Agent"] = "Mozilla/5.0"}};

            webClient.DownloadFile(new Uri(url), $"{Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)}\\BetterDiscord\\temp\\{resource}");
        }