public override object Visit(FormNode node) { Form = new FormViewModel(node.Label); VisitChildren(node); return(Form); }
internal void Reconcile(FormViewModel form) { _formName = form._formName; for (int i = 0; i < form._questions.Count; ++i) { _questions[i].Reconcile(form._questions[i]); } }
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)); }