public void CheckForNewVersion() { Stream s; TransferManager tm = new TransferManager(); if (tm.downloadFile(URL, out s, updateFilePath, null)) { s.Close(); this.showUpdateDialog(s); this.cleanup(); } }
static void Main() { Updater updater = new Updater("http://www.myupdateurl.com/update.xml"); updater.CheckForNewVersion(); Application.Run(new Form1()); }