Beispiel #1
0
 private static void ConntectRunTimeObjects(QuestionStore questionStore, RuleContainer ruleContainer)
 {
     questionStore.VariableChanged += (sender, args) =>
     {
         ruleContainer.ApplyRules();
     };
 }
Beispiel #2
0
        public void Build()
        {
            // Create the run-time objects
            var questionStore       = new QuestionStore(Questions);
            var renderer            = new Renderer();
            var expressionEvaluator = new ExpressionEvaluator(questionStore);
            var ruleContainer       = new RuleContainer(expressionEvaluator, Rules);

            renderer.RenderModel(DocumentModel);
            ConntectRunTimeObjects(questionStore, ruleContainer);

            // Kick off initialization
            ruleContainer.ApplyRules();
        }
 public ExpressionEvaluator(QuestionStore questionStore)
 {
     QuestionStore = questionStore;
 }