Get() 정적인 공개 메소드

static public Get ( string key, string defaultValue ) : string
key string
defaultValue string
리턴 string
예제 #1
0
파일: Form1.cs 프로젝트: kriti-sc/lionfish
        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;
        }
예제 #2
0
파일: Form1.cs 프로젝트: kriti-sc/lionfish
        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;
            }
        }
예제 #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;
        }
예제 #4
0
 private void comboBoxDatabase_SelectedIndexChanged(object sender, EventArgs e)
 {
     this.InitializeDSNNames(string.Empty);
     this.InitializeDrivers(UIConfig.Get(UIConfig.DRIVER_NAME, ""));
 }
예제 #5
0
파일: Form1.cs 프로젝트: kriti-sc/lionfish
 private void comboBoxDSNName_SelectedIndexChanged(object sender, EventArgs e)
 {
     this.InitializeDrivers(UIConfig.Get(UIConfig.DRIVER_NAME, ""));
     this.buttonRun.Enabled = false;
     this.buttonCreateAndSendFiles.Enabled = false;
 }