Esempio n. 1
0
 public SettingsMonitor(IGlobalConfigService config)
 {
     _appObservers = new List<IApplicationObserver>();
     _settingsObservers = new List<ISettingsObserver>();
     config.ApplicationSettingsUpdated += ApplicationChanged;
     config.SettingsUpdated += SettingsChanged;
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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;
 }
Esempio n. 5
0
 public GlobalConfigController(
     IGlobalConfigService globalConfigService)
 {
     _globalConfigService = globalConfigService;
 }
 public ConfigurationDataService(IGlobalConfigService globalSettings)
 {
     _globalSettings = globalSettings;
 }
Esempio n. 7
0
 public GlobalConfigController(IErrorLogService _errorLogService, IGlobalConfigService service)
 {
     _service        = service;
     errorLogService = _errorLogService;
 }