using qdr.app.bundleboiler.business;
using qdr.app.bundleboiler.Configuration;

namespace qdr.app.bundleboiler.ui.Configuration
{
    internal class ApplicationOptions : IOptions
    {
        #region *** Constants ***
        private const string CS_CONNECTION_STRING = "ConnectionString";
        private const string CS_NLOG_CFG_FILE = "NLogConfigurationFile";
        #endregion
        #region *** Private fields ***
        private AppSettingsHandler _appSettingsHandler = new AppSettingsHandler();
        #endregion

        #region *** Properties ***
        public string ConnectionString { get => _appSettingsHandler.GetString(CS_CONNECTION_STRING); set => _appSettingsHandler.SetString(CS_CONNECTION_STRING, value); }
        public string NLogConfigurationFile { get => _appSettingsHandler.GetString(CS_NLOG_CFG_FILE); set => _appSettingsHandler.SetString(CS_NLOG_CFG_FILE, value); }
        #endregion


        #region *** Constructors ***
        public ApplicationOptions()
        {
        }
        #endregion
    }
}
