コード例 #1
0
 public void CheckForUpdates()
 {
     CalculatedGameSettings.Current.Update();
     LocalMachineInfo.Current.Update();
     DayZCommanderUpdater.CheckForUpdate();
     Arma2Updater.CheckForUpdates();
     DayZUpdater.CheckForUpdate();
 }
コード例 #2
0
        public UpdatesViewModel()
        {
            Arma2VersionStats = CollectionViewSource.GetDefaultView(_rawArma2VersionStats) as ListCollectionView;
            Arma2VersionStats.SortDescriptions.Add(new SortDescription("Count", ListSortDirection.Descending));

            DayZVersionStats = CollectionViewSource.GetDefaultView(_rawDayZVersionStats) as ListCollectionView;
            DayZVersionStats.SortDescriptions.Add(new SortDescription("Count", ListSortDirection.Descending));

            LocalMachineInfo       = LocalMachineInfo.Current;
            CalculatedGameSettings = CalculatedGameSettings.Current;
            DayZCommanderUpdater   = new DayZCommanderUpdater();
            Arma2Updater           = new Arma2Updater();
            DayZUpdater            = new DayZUpdater();

            DayZCommanderUpdater.PropertyChanged += AnyModelPropertyChanged;
            Arma2Updater.PropertyChanged         += AnyModelPropertyChanged;
            DayZUpdater.PropertyChanged          += AnyModelPropertyChanged;

            CheckForUpdates();
        }