Пример #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));
        }