Exemplo n.º 1
0
 public UpdateForm(Update.UpdateInfo updateInfo, Window parent)
 {
     UpdateInfo = updateInfo;
     InitializeComponent();
     Owner = parent;
     changelog.AppendText(updateInfo.Changelog);
     text.Text = String.Format("A new version has been detected ({0}). Do you want to go to the download page?", UpdateInfo.Version);
 }
        public UpdateDownloadForm(Update.UpdateInfo ui)
        {
            InitializeComponent();
            //Removes the exit button
            IntPtr hMenu         = GetSystemMenu(this.Handle, false);
            int    menuItemCount = GetMenuItemCount(hMenu);

            RemoveMenu(hMenu, menuItemCount - 1, MF_BYPOSITION);
            Update u = new Update();

            u.DownloadUpdate(ui, this, Application.StartupPath + "\\Party Buffalo_new.exe");
        }
Exemplo n.º 3
0
 public UpdateForm(Update.UpdateInfo updateinfo)
 {
     InitializeComponent();
     AddToUpdate("Update Version: " + updateinfo.UpdateVersion);
     string[] changeLog = updateinfo.UpdateText.Split('`');
     AddToUpdate("Changelog:");
     for (int i = 0; i < changeLog.Length; i++)
     {
         if (changeLog[i] == "")
         {
             AddToUpdate("");
             continue;
         }
         AddToUpdate("-" + changeLog[i]);
     }
 }