public EncodingMonitor()
        {
            InitializeComponent();

            SqlConnectionStringBuilder connStringBuilder = new SqlConnectionStringBuilder();

            connStringBuilder.DataSource     = ConfigurationManager.AppSettings["DBServerName"].ToString();
            connStringBuilder.UserID         = ConfigurationManager.AppSettings["DBUserName"].ToString();
            connStringBuilder.Password       = ConfigurationManager.AppSettings["DBUserPassword"].ToString();
            connStringBuilder.InitialCatalog = ConfigurationManager.AppSettings["DatabaseName"].ToString();
            _connectionString   = connStringBuilder.ConnectionString;
            _awsAccessKey       = ConfigurationManager.AppSettings["awsAccessKey"].ToString();
            _awsSecretAccesskey = ConfigurationManager.AppSettings["awsSecretAccesskey"].ToString();
            _awsBucket          = ConfigurationManager.AppSettings["awsBucket"].ToString();
            _thumbnail_suffix   = ConfigurationManager.AppSettings["_thumbnail_suffix"].ToString();

            conn = new SqlConnection(_connectionString);

            _frequency = int.Parse(ConfigurationManager.AppSettings["Frequency"].ToString());
            _s3Service = new AwsService(_awsAccessKey, _awsSecretAccesskey, _awsBucket);

            log.Info("Initiating service with following parameters:");
            log.Info("Database connection string: " + _connectionString);
            log.Info("Frequency: " + _frequency.ToString());
        }
        public TestForm()
        {
            InitializeComponent();

            SqlConnectionStringBuilder connStringBuilder = new SqlConnectionStringBuilder();

            connStringBuilder.DataSource     = ConfigurationManager.AppSettings["DBServerName"].ToString();
            connStringBuilder.UserID         = ConfigurationManager.AppSettings["DBUserName"].ToString();
            connStringBuilder.Password       = ConfigurationManager.AppSettings["DBUserPassword"].ToString();
            connStringBuilder.InitialCatalog = ConfigurationManager.AppSettings["DatabaseName"].ToString();
            _connectionString   = connStringBuilder.ConnectionString;
            _awsAccessKey       = ConfigurationManager.AppSettings["awsAccessKey"].ToString();
            _awsSecretAccesskey = ConfigurationManager.AppSettings["awsSecretAccesskey"].ToString();
            _awsBucket          = ConfigurationManager.AppSettings["awsBucket"].ToString();

            conn = new SqlConnection(_connectionString);

            _frequency = int.Parse(ConfigurationManager.AppSettings["Frequency"].ToString());
            _s3Service = new AwsService(_awsAccessKey, _awsSecretAccesskey, _awsBucket);
        }