/// <summary> /// Reads the application settings from the Windows Registry. /// </summary> private void LoadSettings() { try { RegistryHandler.ExtractRegistrySettings(out dbFolder, out tempFolder); Properties.Settings.Default.DatabaseFolderPath = dbFolder; Properties.Settings.Default.TempFolderPath = tempFolder; } catch (Exception ex) { RegistryHandler.DeleteRegistrySettings(); throw new RegistryAccessException("Could not access the registry settings.", ex); } try { booksManager = BooksManager.Instance; } catch (BookEntitiesException) { throw; } }