private void btnConnect_Click(object sender, EventArgs e) { ProgSettings.DbName = txtDefaultDB.Text; ProgSettings.Password = txtPassword.Text; ProgSettings.UserName = txtUsername.Text; ProgSettings.ServerName = txtServerName.Text; ProgSettings.Port = txtPort.Text; if (!txtDefaultDB.Text.Contains("*")) { // Display Table List screen var tablesScreen = new FrmTables { Text = Resources.DBDocs__Using_database_ + txtDefaultDB.Text }; tablesScreen.Show(); Hide(); } else { // Display Database List screen var dbScreen = new FrmDatabaseSelect { Text = Resources.DBDocs__Using_Server + txtServerName.Text }; dbScreen.Show(); Hide(); } }
private void btnConnect_Click(object sender, EventArgs e) { ProgSettings.DbName = txtDefaultDB.Text; ProgSettings.Password = txtPassword.Text; ProgSettings.UserName = txtUsername.Text; ProgSettings.ServerName = txtServerName.Text; if (!txtDefaultDB.Text.Contains("*")) { // Display Table List screen var tablesScreen = new FrmTables { Text = Resources.DBDocs__Using_database_ + txtDefaultDB.Text }; tablesScreen.Show(); Hide(); } else { // Display Database List screen var dbScreen = new FrmDatabaseSelect { Text = Resources.DBDocs__Using_Server + txtServerName.Text }; dbScreen.Show(); Hide(); } }