Get() static public method

static public Get ( string key, string defaultValue ) : string
key string
defaultValue string
return string
Example #1
0
        private void InitializeValues()
        {
            this.comboBoxDatabase.SelectedIndex = this.GetDatabaseTypeIdx(UIConfig.Get(UIConfig.SQL_DIALECT, "mssql"));
            this.comboBoxAuthType.SelectedIndex = this.GetAuthTypeIdx(UIConfig.Get(UIConfig.AUTH_TYPE, "sql_auth"));
            this.textBoxServerName.Text         = UIConfig.Get(UIConfig.SERVER_NAME, "");
            this.textBoxPort.Text                 = UIConfig.Get(UIConfig.SERVER_PORT, "");
            this.textBoxLoginName.Text            = UIConfig.Get(UIConfig.LOGIN_NAME, "");
            this.textBoxLoginPassword.Text        = UIConfig.Get(UIConfig.LOGIN_PASSWORD, "");
            this.textBoxUserName.Text             = UIConfig.Get(UIConfig.DATA_SET_NAME, "My Data Set Name");
            this.textBoxDatabaseName.Text         = UIConfig.Get(UIConfig.DATABASE_NAME, "master");
            this.textBoxKey.Text                  = UIConfig.Get(UIConfig.SQLDEP_KEY, "");
            this.textBoxDefaultDatabase.Text      = UIConfig.Get(UIConfig.FS_DEFAULT_DB, "");
            this.textBoxDefautSchema.Text         = UIConfig.Get(UIConfig.FS_DEFAULT_SCHEMA, "");
            this.textBoxRootDirectory.Text        = UIConfig.Get(UIConfig.FS_PATH, "");
            this.textBoxFileMask.Text             = UIConfig.Get(UIConfig.FS_MASK, "*.sql");
            this.textBoxWarehouse.Text            = UIConfig.Get(UIConfig.SNOWFLAKE_WAREHOUSE, "");
            this.TextBoxAccount.Text              = UIConfig.Get(UIConfig.SNOWFLAKE_ACCOUNT, "");
            this.textBoxRole.Text                 = UIConfig.Get(UIConfig.SNOWFLAKE_ROLE, "");
            this.buttonRun.Enabled                = false;
            this.buttonCreateAndSendFiles.Enabled = false;
            this.InitializeDSNNames(string.Empty);
            this.InitializeDrivers(UIConfig.Get(UIConfig.DRIVER_NAME, ""));

            this.EnableAuthSettings();
            CheckForIllegalCrossThreadCalls = false;
        }
Example #2
0
        private void comboBoxDatabase_SelectedIndexChanged(object sender, EventArgs e)
        {
            this.InitializeDSNNames(string.Empty);
            this.InitializeDrivers(UIConfig.Get(UIConfig.DRIVER_NAME, ""));
            this.buttonRun.Enabled = false;
            this.buttonCreateAndSendFiles.Enabled = false;

            switch (GetDatabaseTypeName(this.comboBoxDatabase.SelectedIndex))
            {
            case "snowflake":
                enableSnowflakeFields();
                break;

            default:
                showDefaultFields();
                break;
            }
        }
Example #3
0
        private void InitializeValues()
        {
            this.comboBoxDatabase.SelectedIndex = this.GetDatabaseTypeIdx(UIConfig.Get(UIConfig.SQL_DIALECT, "mssql"));
            this.comboBoxAuthType.SelectedIndex = this.GetAuthTypeIdx(UIConfig.Get(UIConfig.AUTH_TYPE, "sql_auth"));
            this.textBoxServerName.Text         = UIConfig.Get(UIConfig.SERVER_NAME, "");
            this.textBoxPort.Text          = UIConfig.Get(UIConfig.SERVER_PORT, "");
            this.textBoxLoginName.Text     = UIConfig.Get(UIConfig.LOGIN_NAME, "");
            this.textBoxLoginPassword.Text = UIConfig.Get(UIConfig.LOGIN_PASSWORD, "");
            this.textBoxUserName.Text      = UIConfig.Get(UIConfig.DATA_SET_NAME, "My Data Set Name");
            this.textBoxDatabaseName.Text  = UIConfig.Get(UIConfig.DATABASE_NAME, "master");
            this.textBoxKey.Text           = UIConfig.Get(UIConfig.SQLDEP_KEY, "");
            this.buttonRun.Enabled         = false;
            this.InitializeDSNNames(string.Empty);
            this.InitializeDrivers(UIConfig.Get(UIConfig.DRIVER_NAME, ""));

            this.EnableAuthSettings();
            //
            CheckForIllegalCrossThreadCalls = false;
        }
Example #4
0
 private void comboBoxDatabase_SelectedIndexChanged(object sender, EventArgs e)
 {
     this.InitializeDSNNames(string.Empty);
     this.InitializeDrivers(UIConfig.Get(UIConfig.DRIVER_NAME, ""));
 }
Example #5
0
 private void comboBoxDSNName_SelectedIndexChanged(object sender, EventArgs e)
 {
     this.InitializeDrivers(UIConfig.Get(UIConfig.DRIVER_NAME, ""));
     this.buttonRun.Enabled = false;
     this.buttonCreateAndSendFiles.Enabled = false;
 }