public SettingsViewModel(AppSettings settings)
 {
     _settings = settings;
     this.SessionCacheDuration = settings.SessionCacheDuration;
     this.SpeakerCacheDuration = settings.SpeakerCacheDuration;
     this.ScheduleCacheDuration = settings.ScheduleCacheDuration;
     this.MainBackgroundImageOn = settings.BackgroundImageOn;
     _initialized = true;
 }
Пример #2
0
        public MainViewModel(AppSettings settings)
            : base(registerCoreData: true)
        {
            _settings = settings;

            if (!IsInDesignMode)
            {
                this.IsBusy = true;
                this.BusyText = "Initializing app...";
                LogInstance.LogDebug("MainViewModel ctor");
                Messenger.Default.Register<AppInitializedMessage>(this, AppInitialized);
            }

            SetBackground();
        }