ApplicationOptions.cs 1.0 KB

12345678910111213141516171819202122232425262728
  1. using qdr.app.bundleboiler.business;
  2. using qdr.app.bundleboiler.Configuration;
  3. namespace qdr.app.bundleboiler.ui.Configuration
  4. {
  5. internal class ApplicationOptions : IOptions
  6. {
  7. #region *** Constants ***
  8. private const string CS_CONNECTION_STRING = "ConnectionString";
  9. private const string CS_NLOG_CFG_FILE = "NLogConfigurationFile";
  10. #endregion
  11. #region *** Private fields ***
  12. private AppSettingsHandler _appSettingsHandler = new AppSettingsHandler();
  13. #endregion
  14. #region *** Properties ***
  15. public string ConnectionString { get => _appSettingsHandler.GetString(CS_CONNECTION_STRING); set => _appSettingsHandler.SetString(CS_CONNECTION_STRING, value); }
  16. public string NLogConfigurationFile { get => _appSettingsHandler.GetString(CS_NLOG_CFG_FILE); set => _appSettingsHandler.SetString(CS_NLOG_CFG_FILE, value); }
  17. #endregion
  18. #region *** Constructors ***
  19. public ApplicationOptions()
  20. {
  21. }
  22. #endregion
  23. }
  24. }