예제 #1
0
        void AddDebugInputItem(string lengthExpression, string fromExpression, string toExpression, IExecutionEnvironment executionEnvironment, enRandomType randomType, int update)
        {
            AddDebugInputItem(new DebugItemStaticDataParams(randomType.GetDescription(), "Random"));

            if (randomType == enRandomType.Guid)
            {
                return;
            }

            if (randomType == enRandomType.Numbers)
            {
                AddDebugInputItem(new DebugEvalResult(fromExpression, "From", executionEnvironment, update));
                AddDebugInputItem(new DebugEvalResult(toExpression, "To", executionEnvironment, update));
            }
            else
            {
                AddDebugInputItem(new DebugEvalResult(lengthExpression, "Length", executionEnvironment, update));
            }
        }
예제 #2
0
        private void AddDebugInputItem(string lengthExpression, string fromExpression, string toExpression, IBinaryDataListEntry fromEntry, IBinaryDataListEntry toEntry, IBinaryDataListEntry lengthEntry, Guid executionId, enRandomType randomType)
        {
            AddDebugInputItem(new DebugItemStaticDataParams(randomType.GetDescription(), "Random"));

            if (randomType == enRandomType.Guid)
            {
                return;
            }

            if (randomType == enRandomType.Numbers)
            {
                AddDebugInputItem(new DebugItemVariableParams(fromExpression, "From", fromEntry, executionId));
                AddDebugInputItem(new DebugItemVariableParams(toExpression, "To", toEntry, executionId));
            }
            else
            {
                AddDebugInputItem(new DebugItemVariableParams(lengthExpression, "Length", lengthEntry, executionId));
            }
        }