private void connectToolStripMenuItem_Click(object sender, EventArgs e) { SQLControl c = GetCurrentSqlControl(); if (c == null) { return; } if (!c.GetConnection()) { DisableInput(); } }
private void onShown(object sender, EventArgs e) { AddTab(); SQLControl c = GetCurrentSqlControl(); if (c == null) { return; } if (!c.GetConnection()) { DisableInput(); } }