public SettingsMonitor(IGlobalConfigService config) { _appObservers = new List<IApplicationObserver>(); _settingsObservers = new List<ISettingsObserver>(); config.ApplicationSettingsUpdated += ApplicationChanged; config.SettingsUpdated += SettingsChanged; }
public MainWindowViewModel(IGlobalConfigService globalConfigService, IRegionManager regionManager) { EventAggregator.GetEvent <StatusBarMessageUpdateEvent>().Subscribe(OnStatusBarMessageUpdateEvent); _regionManager = regionManager; _globalConfigService = globalConfigService; GetSavedSettings(); NavigateCommand = new DelegateCommand <string>(Navigate); Container.Resolve <ILoggerFacade>().Log("MainViewModel created", Category.Info, Priority.None); }
public ShellSettingsFlyoutViewModel(IGlobalConfigService globalConfigService, IServiceFactory serviceFactory) { _globalConfigService = globalConfigService; _serviceFactory = serviceFactory; this.ApplicationThemes = ThemeManager.AppThemes .Select(a => new ApplicationTheme() { Name = a.Name, BorderColorBrush = a.Resources["BlackColorBrush"] as Brush, ColorBrush = a.Resources["WhiteColorBrush"] as Brush }) .ToList(); this.AccentColors = ThemeManager.Accents .Select(a => new AccentColor() { Name = a.Name, ColorBrush = a.Resources["AccentColorBrush"] as Brush }) .ToList(); Container.Resolve <ILoggerFacade>().Log("ShellSettingsFlyoutViewModel created", Category.Info, Priority.None); }
public GlobalConfigController(IGlobalConfigService configService, IUnitOfWork uow) { _configService = configService; _uow = uow; }
public GlobalConfigController( IGlobalConfigService globalConfigService) { _globalConfigService = globalConfigService; }
public ConfigurationDataService(IGlobalConfigService globalSettings) { _globalSettings = globalSettings; }
public GlobalConfigController(IErrorLogService _errorLogService, IGlobalConfigService service) { _service = service; errorLogService = _errorLogService; }