Esempio n. 1
0
        /// <summary>
        /// db 타입 변경
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void inpDbType_Text_Changed(object sender, usrEventArgs e)
        {
            switch (inpDbType.ComboBoxSelectItem.ToString())
            {
            case "ORACLE":
                inpAuthType.ComboBoxSelectItem = "Sql Server 인증";
                inpAuthType.Enabled            = false;

                inpIp.Label_Text = "TNS";

                inpDataBase.ComboBoxSelectItem = null;
                inpDataBase.Enabled            = false;
                dbType = enDBType.Oracle;
                break;

            case "MS-SQL":
                inpAuthType.ComboBoxSelectItem = "Sql Server 인증";
                inpAuthType.Enabled            = true;

                inpIp.Label_Text = "IP";

                inpDataBase.ComboBoxSelectItem = null;
                inpDataBase.Enabled            = true;
                dbType = enDBType.MsSQL;
                break;

            default:
                inpAuthType.Enabled            = false;
                inpDataBase.ComboBoxSelectItem = null;
                inpDataBase.Enabled            = false;
                dbType = enDBType.None;
                break;
            }
        }
Esempio n. 2
0
 public DBSetting(OracleDB.strConnect _orc)
 {
     dbType = enDBType.Oracle;
     ora    = _orc;
     Form_Init();
 }
Esempio n. 3
0
 public DBSetting(MsSQL.strConnect _sql)
 {
     dbType = enDBType.MsSQL;
     sql    = _sql;
     Form_Init();
 }