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; }
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; } }
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; }
private void comboBoxDatabase_SelectedIndexChanged(object sender, EventArgs e) { this.InitializeDSNNames(string.Empty); this.InitializeDrivers(UIConfig.Get(UIConfig.DRIVER_NAME, "")); }
private void comboBoxDSNName_SelectedIndexChanged(object sender, EventArgs e) { this.InitializeDrivers(UIConfig.Get(UIConfig.DRIVER_NAME, "")); this.buttonRun.Enabled = false; this.buttonCreateAndSendFiles.Enabled = false; }