private void ErrorBoxCurrentSunQuery_OnGoToErrorPosition(object sender, EventArgs e)
        {
            BoxSqlCurrentSubQuery.Focus();

            if (_errorPositionCurrentSubQuery == -1)
            {
                return;
            }

            BoxSqlCurrentSubQuery.ScrollToPosition((_errorPositionCurrentSubQuery));
            BoxSqlCurrentSubQuery.CaretOffset = _errorPositionCurrentSubQuery;
        }
Beispiel #2
0
        private void ErrorBox_OnGoToErrorPositionEvent(object sender, EventArgs e)
        {
            BoxSqlCurrentSubQuery.Focus();

            if (_errorPosition1 == -1)
            {
                return;
            }

            if (BoxSqlCurrentSubQuery.LineCount != 1)
            {
                BoxSqlCurrentSubQuery.ScrollToLine(BoxSqlCurrentSubQuery.GetLineIndexFromCharacterIndex(_errorPosition1));
            }
            BoxSqlCurrentSubQuery.CaretIndex = _errorPosition1;
        }
 private void ErrorBoxCurrentSunQuery_OnRevertValidText(object sender, EventArgs e)
 {
     BoxSqlCurrentSubQuery.Text = _lastValidSql;
     BoxSqlCurrentSubQuery.Focus();
 }