Beispiel #1
0
        private IValue InternalVisitExpression(SyntaxNode n)
        {
            var vv  = new ValueVisitor(state);
            var tmp = vv.Visit(n);

            return(tmp);
        }
Beispiel #2
0
        public UIElement ProcessFormObject(UIElement form)
        {
            Value value = Processor.Evaluate(this.conditionalNode.Condition);

            Widget    stackPanelWidget = new StackPanelWidget();
            UIElement customStackPanel = stackPanelWidget.CreateUIControl(ValueVisitor.Visit((dynamic)value));

            return(AddChildren(Processor.ProcessBody(conditionalNode.GetBody(), customStackPanel), form));
        }
Beispiel #3
0
        public UIElement ProcessFormObject(UIElement form)
        {
            Widget widget      = new TypeToWidgetVisitor(questionNode.Identifier.Name).VisitValue(questionNode.RetrieveType());
            Widget labelWidget = new LabelVisitor().VisitValue(questionNode.Label);

            Values.Value widgetValue = Processor.GetObjectValue(questionNode.Identifier);

            widgetValue = ProcessComputation(widgetValue);

            AddChildren(labelWidget.CreateUIControl(questionNode.Label.Value), form);
            AddChildren(widget.CreateUIControl(ValueVisitor.Visit((dynamic)widgetValue)), form);

            return(form);
        }