public QuestionElementManager(string identifyer, string text, ElementManager parent, ElementManagerController controller, ExpressionBool activationExpression = null, TypedExpressionValue <T> answerExpression = null) : base(identifyer, text, "question", parent, controller, activationExpression) { Answer = new QuestionElementValue <T>(default(T), false); IsAnswered = false; _answerExpression = answerExpression; }
/// <summary> /// Add child, set parent of ElementManager /// </summary> /// <param name="elementManager">ElementManager to add as child</param> public void AddChild(ElementManager elementManager) { _children.Add(elementManager); elementManager.Parent = this; }
/// <summary> /// Add child, sets parent of ElementManager /// </summary> /// <param name="elementManager">ElementManager to add as child</param> public virtual void AddChild(ElementManager elementManager) { Children.Add(elementManager); elementManager.Parent = this; }
public ElementManagerLeaf(string identifyer, string text, string xmlName, ElementManager parent, ElementManagerController controller, ExpressionBool activationExpression = null) : base(identifyer, text, xmlName, controller, activationExpression) { Parent = parent; }