Beispiel #1
0
        public ScopeNode(Node?parent, Context context, ScopeElement element) : base(parent, context, element)
        {
            scope = new(element.Child);
            scope.PropertyChanged += Scope_PropertyChanged;

            var childElement = scope.Execute;

            child = childElement.CreateNode(this, context);
        }
Beispiel #2
0
 protected override void UpdateElement(ScopeElement oldElement, Context oldContext)
 {
     scope.Dispose();
     scope = new(Element.Child);
     UpdateState();
 }