public void CheckForUpdates() { CalculatedGameSettings.Current.Update(); LocalMachineInfo.Current.Update(); DayZCommanderUpdater.CheckForUpdate(); Arma2Updater.CheckForUpdates(); DayZUpdater.CheckForUpdate(); }
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(); }