Exemplo n.º 1
0
        private void connectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SQLControl c = GetCurrentSqlControl();

            if (c == null)
            {
                return;
            }

            if (!c.GetConnection())
            {
                DisableInput();
            }
        }
Exemplo n.º 2
0
        private void onShown(object sender, EventArgs e)
        {
            AddTab();

            SQLControl c = GetCurrentSqlControl();

            if (c == null)
            {
                return;
            }

            if (!c.GetConnection())
            {
                DisableInput();
            }
        }
Exemplo n.º 3
0
        private void QueryTabSelected(object sender, TabControlEventArgs e)
        {
            SQLControl c = GetCurrentSqlControl();

            if (c == null)
            {
                return;
            }

            if (!c.Connected)
            {
                DisableInput();
                return;
            }

            SetUpForm(!c.QueryRunning);
        }