Ejemplo n.º 1
0
        private void HandleParametricCommandChoice()
        {
            if (validationKeyPressed)
            {
                if (ForceValidationKeyPressed || !CurrentExecution.HasNextVariable &&
                    !isShiftPressed && (!CurrentExecution.CurrentParameterInfo.IsArray ||
                                        CurrentExecution.CurrentTextEntered.IsNullOrEmpty() &&
                                        CurrentExecution.CurrentAutoCompleteID == -1))
                {
                    if (TryExecuteCurrentParametricCommand())
                    {
                        return;
                    }
                    return;
                }

                if (isShiftPressed)
                {
                    CurrentExecution.NotifyPreviousVariable(this);
                    SearchTerms = CurrentExecution.CurrentTextEntered;
                    Repaint();
                    PreventSearchMovement = true;
                    Focus();
                }
                else
                {
                    CurrentExecution.NotifyNextVariable(this);
                    SearchTerms = CurrentExecution.CurrentTextEntered;
                    Repaint();
                    PreventSearchMovement = true;
                    Focus();
                }
            }
        }
Ejemplo n.º 2
0
 private void ActivateParametricMode(ParametricCommandExecution exec)
 {
     CurrentExecution             = exec;
     IsParametricMethodCompletion = true;
     JustOpenedActiveMode         = true;
     ResetSearchTerms();
     ScrollIndex     = Vector2.zero;
     DisplayNoResult = CurrentExecution.CurrentAutoComplete == null;
     mousePressed    = false;
     exec.NotifyNextVariable(this);
     Repaint();
 }