public RootViewModel() { Config = ConfigSerializer.GetConfig(); UpdateAppearance(); dispatcher = Dispatcher.CurrentDispatcher; FarmIntegrator.Start(FarmRefreshed); UpdateCommand = DelegateCommandFactory.Create(PerformUpdate, CanPerformUpdate); SettingsCommand = DelegateCommandFactory.Create(ShowSettings, CanShowSettings); ShowLogCommand = DelegateCommandFactory.Create(PerformShowLog); LoadTestLogCommand = DelegateCommandFactory.Create(PerformLoadTestLog, CanPerformLoadTestLog); InitializeCommand = DelegateCommandFactory.Create(PerformInitialize, CanPerformInitialize); ActivateCommand = DelegateCommandFactory.Create(PerformActivate, CanPerformActivate); LogViewModel = new LoggingViewModel(); Version = $"Git tools {VersionInfo.Version}"; }
public RootViewModel() { Config = ConfigSerializer.GetConfig(); UpdateDefaultTheme(); dispatcher = Dispatcher.CurrentDispatcher; FarmIntegrator.Start(FarmRefreshed); AtomFeed.FeedWorker.Initialize(); UpdateCommand = DelegateCommandFactory.Create(PerformUpdate, CanPerformUpdate); SettingsCommand = DelegateCommandFactory.Create(ShowSettings, CanShowSettings); ShowLogCommand = DelegateCommandFactory.Create(PerformShowLog); LoadTestLogCommand = DelegateCommandFactory.Create(PerformLoadTestLog, CanPerformLoadTestLog); DownloadNewVersionCommand = DelegateCommandFactory.Create(DownloadNewVersion, CanDownloadNewVersion); InitializeCommand = DelegateCommandFactory.Create(PerformInitialize, CanPerformInitialize); ActivateCommand = DelegateCommandFactory.Create(PerformActivate, CanPerformActivate); LogViewModel = new LoggingViewModel(); Version = $"Git tools {VersionInfo.Version}"; }