Esempio n. 1
0
        private void ChildrenOnCollectionChanged(object? sender, NotifyCollectionChangedEventArgs e)
        {
            if (e.Action == NotifyCollectionChangedAction.Add)
                foreach (XMLEntity? item in e.NewItems)
                    item!.ParentElement = this;

            ChildrenChangedRecursive?.Invoke(this, e);
            ChildrenChangedDirect?.Invoke(this, e);
            ParentElement?.NotifyChildChanged();
        }
Esempio n. 2
0
 private void NotifyChildChanged()
 {
     ChildrenChangedRecursive?.Invoke(this, new EventArgs());
     ParentElement?.NotifyChildChanged();
 }