Example #1
0
        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);
        }
Example #2
0
        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;
            }
        }
Example #3
0
 public static void Update(string giturl, string apiurl)
 {
     UPDATES.Update(giturl, apiurl);
 }
Example #4
0
 public static void DownloadDLL(string giturl)
 {
     UPDATES.DownloadDLL(giturl);
 }