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

            if (c == null)
            {
                return;
            }

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

            SQLControl c = GetCurrentSqlControl();

            if (c == null)
            {
                return;
            }

            if (!c.GetConnection())
            {
                DisableInput();
            }
        }
Esempio 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);
        }