コード例 #1
0
 private void StartUpdater()
 {
     this.Dispatcher.BeginInvoke((Action)(() =>
     {
         Program.AIRUpdaterState = Program.UpdateState.Running;
         Program.MMUpdaterState = Program.UpdateState.Running;
         label1.Text = $"  {Program.LanguageResource.GetString("AutoBoot_CheckingForUpdates")}";
         Updater updaterTask = new Updater();
         ModManagerUpdater modManagerUpdater = new ModManagerUpdater();
     }));
 }
コード例 #2
0
        public ModManagerUpdater(bool _manuallyTriggered = false)
        {
            Program.MMUpdaterState = Program.UpdateState.Checking;
            Program.Log.InfoFormat("Checking for Mod Manager Updates...");
            InitializeComponent();
            try { this.Owner = System.Windows.Application.Current.MainWindow; }
            catch { }
            Instance = this;
            Management.UserLanguage.ApplyLanguage(ref Instance);

            ManuallyTriggered = _manuallyTriggered;

            this.GetUpdates();
        }