예제 #1
0
        public override object Visit(FormNode node)
        {
            Form = new FormViewModel(node.Label);
            VisitChildren(node);

            return(Form);
        }
예제 #2
0
 internal void Reconcile(FormViewModel form)
 {
     _formName = form._formName;
     for (int i = 0; i < form._questions.Count; ++i)
     {
         _questions[i].Reconcile(form._questions[i]);
     }
 }
예제 #3
0
        protected QuestionViewModel(string description, string id, bool isEvaluated, object value, FormViewModel parentForm)
        {
            _id          = id;
            _description = description;
            _isEvaluated = isEvaluated;
            _parentForm  = parentForm;
            _value       = value;

            this.ObservableForProperty(x => x.Value)
            .Subscribe(x => parentForm.QuestionValueAssignedCommand.Execute(this));
        }