static void Main() { Updater updater = new Updater("http://www.myupdateurl.com/update.xml"); updater.CheckForNewVersion(); Application.Run(new Form1()); }
public Notification(String name, String message, String version, Assembly callingAssem, Updater updater) { InitializeComponent(); this.appname_label.Text = name; this.version_label.Text = version; this.message_textbox.Text = message; this.callingAssembly = callingAssem; trans = new TransferManager.TransferProgress(UpdateProgressBar); updater.UpdateDoneEvent +=new Updater.UpdateDone(updater_UpdateDoneEvent); if (NotificationFormReady != null) NotificationFormReady(); }