internal static string DownloadUrlToDisk(string url) { WebClient wc = new WebClient(); string pathToSave = Utils.GetExeFolder() + "/wallpaper.jpg"; wc.DownloadFile(url, pathToSave); return(pathToSave); }
internal static JObject GetConfig() { var configPath = Utils.GetExeFolder() + "/config.json"; if (File.Exists(configPath)) { try { JObject configObj = JObject.Parse(File.ReadAllText(configPath)); return(configObj); } catch {} } return(null); }