public static Version GetLatestVersion(string giturl, string apiurl) { string ver = UPDATES.CheckUpdates(giturl, apiurl); if (ver.Split(':')[1].Contains("T")) { return(new Version(ver.Split(':')[2].Replace("]", ""))); } return(null); }
public void StartDownload() { button1.Enabled = false; button2.Enabled = false; switch (mode) { case "update": UPDATES.Update(UPDATES.update_url.AbsoluteUri, UPDATES.apiurl); break; case "dll": UPDATES.DownloadDLL(dllpatch); break; } }
public static void Update(string giturl, string apiurl) { UPDATES.Update(giturl, apiurl); }
public static void DownloadDLL(string giturl) { UPDATES.DownloadDLL(giturl); }