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); }