예제 #1
0
 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;
 }
예제 #2
0
 /// <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;
 }
예제 #3
0
 /// <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;
 }
예제 #4
0
 public ElementManagerLeaf(string identifyer, string text, string xmlName, ElementManager parent, ElementManagerController controller, ExpressionBool activationExpression = null) :
     base(identifyer, text, xmlName, controller, activationExpression)
 {
     Parent = parent;
 }