Esempio n. 1
0
        public override void Init(object initData)
        {
            base.Init(initData);

            Simulate            = _properties.LoadOrDefault(PropertiesWrapper.SIMULATE_STORE_KEY, false);
            LimitListVisibility = _properties.LoadOrDefault(PropertiesWrapper.LIMIT_LIST_STORE_KEY, false);
            _memories           = _properties.LoadOrDefault(PropertiesWrapper.MEMORY_LIST_STORE_KEY, new List <Memory>());
            _settings           = _properties.LoadOrDefault(PropertiesWrapper.SETTINGS_STORE_KEY, new Settings());

            if (Simulate)
            {
                _notificationManager.StartNotifications(_memories, _settings);
            }
            else
            {
                _notificationManager.SetSettings(_settings);
                _notificationManager.SetMemories(_memories);
            }
        }
Esempio n. 2
0
 protected override void OnStart()
 {
     _themeService.ApplyTheme(_dataStore.LoadOrDefault(PropertiesWrapper.THEME_STORE_KEY, ""));
 }