ApplyLinesInternal() public méthode

public ApplyLinesInternal ( string lines, int startingIndex, int count, IElement element, CodeContext codeContext, string fileName = null, bool addStackVariables = true, bool removeStackVariables = true ) : bool
lines string
startingIndex int
count int
element IElement
codeContext GlueView.Scripting.CodeContext
fileName string
addStackVariables bool
removeStackVariables bool
Résultat bool
        private void ReplTextBox_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                OutputTextBox.Text = "";
                string whatToProcess = ReplTextBox.Text;
                e.Handled          = true;
                e.SuppressKeyPress = true;
                mScriptParsingPlugin.ApplyLinesInternal(
                    new string[] { whatToProcess },
                    0,
                    1,
                    GlueViewState.Self.CurrentElement,
                    new CodeContext(GlueViewState.Self.CurrentElementRuntime));

                // We don't want to lose focus - that just
                // makes the output box gain focus.
                //ReplTextBox.Enabled = false;
                //ReplTextBox.Enabled = true;
                ReplTextBox.Text = "";
            }
        }