///////////////////////////////////////////////////////////////////////////////////////////
        private void myRunButton_Click(object sender, EventArgs e)
        {
            Connection conn   = MainWindow.Instance.Connection;
            string     script = myScriptBox.Text;

            if (script.StartsWith("%%"))
            {
                ScriptControlWindow scw = new ScriptControlWindow(script);
                scw.Show();
            }
            else
            {
                conn.SendCommand(myScriptBox.Text);
            }
        }
Beispiel #2
0
        ///////////////////////////////////////////////////////////////////////////////////////////
        private void myRunButton_Click(object sender, EventArgs e)
        {
            Connection conn = MainWindow.Instance.Connection;
            string script = myScriptBox.Text;

            if(script.StartsWith("%%"))
            {
                ScriptControlWindow scw = new ScriptControlWindow(script);
                scw.Show();
            }
            else
            {
                conn.SendCommand(myScriptBox.Text);
            }
        }