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(); }
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); }
public OracleLogin(string defaultHostname = "") { InitializeComponent(); ConnectionInfo = new OracleConnectionInfo(); LoadUserPrefs(defaultHostname); }