/// <summary> /// Initializes a new instance of the <see cref="App"/> class. /// </summary> public App() { var vm = Locator.SetupViewModel; vm.CommunityFolder = AppSettings.Default.CommunityFolder; vm.ZipFilesFolder = AppSettings.Default.ZipFilesFolder; vm.HiddenFilesFolder = AppSettings.Default.HiddenFilesFolder; vm.LoggingLevel = (LogLevel)AppSettings.Default.LogLevel; vm.LoggingEnabled = AppSettings.Default.LoggingEnabled; vm.CheckForUpdates = AppSettings.Default.VersionAutoCheck; vm.IncludePrereleaseVersions = AppSettings.Default.IncludePrereleaseVersions; FileLogProvider.Instance.LogLevel = vm.LoggingLevel; FileLogProvider.Instance.LoggingEnabled = vm.LoggingEnabled; var log = FileLogProvider.Instance.GetLogFor <App>(); log.Info("Wpf.App logging started."); log.Info("SetupViewModel initialized."); DbCore.Initialize(); }