示例#1
0
        public override bool updateBOSS()
        {
            var ret = false;

              try
              {
            var bupUpdater = new FalloutNewVegasBOSSUpdater();
            bupUpdater.UpdateMasterlist(LoadOrderSorter.LoadOrderTemplatePath);
            ret = true;
              }
              catch (Exception e)
              {
            MessageBox.Show("There was an error updating BOSS\n" + e.Message, "BOSS update error", MessageBoxButtons.OK,
                        MessageBoxIcon.Exclamation);
              }

              return ret;
        }
示例#2
0
 /// <summary>
 /// hecks for any updates that are available for any game-specific components.
 /// </summary>
 /// <remarks><lang cref="true"/> if updates were available; otherwise <lang cref="false"/>.</remarks>
 public override bool CheckForUpdates()
 {
     //check for new load order tepmlate
     Tools.AutoSorter.FalloutNewVegasBOSSUpdater bupUpdater = new Tools.AutoSorter.FalloutNewVegasBOSSUpdater();
     Int32 intLOVersion = bupUpdater.GetMasterlistVersion();
     if (intLOVersion > new Fallout3.Tools.AutoSorter.LoadOrderSorter().GetFileVersion())
     {
         if (MessageBox.Show("A new version of the load order template is available: Release " + intLOVersion +
             "\nDo you wish to download?", "Message", MessageBoxButtons.YesNo) == DialogResult.Yes)
         {
             bupUpdater.UpdateMasterlist(Fomm.Games.Fallout3.Tools.AutoSorter.LoadOrderSorter.LoadOrderTemplatePath);
             MessageBox.Show("The load order template was updated.", "Update Complete.", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
         return true;
     }
     return false;
 }