Exemple #1
0
        private void buttonOk_Click(object sender, System.EventArgs e)
        {
            string servicePrefix = "";

            if (this.comboBoxHostList.SelectedValue != null)
            {
                servicePrefix = this.comboBoxHostList.SelectedValue.ToString();
            }

            ConnectionInfo          = Settings.GetConnectionInfo(servicePrefix);
            ConnectionInfo.Username = this.textBoxUser.Text;
            ConnectionInfo.Password = this.textBoxPass.Text;

            Settings.Default.SelectedHdbHost = servicePrefix;
            if (string.IsNullOrEmpty(this.txtPort.Text))
            {
                MessageBox.Show("You must enter a port number - Default is 1521", "HDB Poet");
            }
            else
            {
                ConnectionInfo.Port = this.txtPort.Text;
            }


            Close();
        }
Exemple #2
0
 public OracleServer(OracleConnectionInfo ci)
 {
     this.username   = ci.Username;
     this.service    = ci.Service;
     this.m_host     = ci.Host;
     this.m_port     = ci.Port;
     this.m_timeZone = ci.Timezone;
     sqlCommands.Clear();
     MakeConnectionString(username, ci.Password);
 }
Exemple #3
0
 public OracleLogin(string defaultHostname = "")
 {
     InitializeComponent();
     ConnectionInfo = new OracleConnectionInfo();
     LoadUserPrefs(defaultHostname);
 }