Example #1
0
        void OnDescendantAdded(Element child)
        {
            DescendantAdded?.Invoke(this, new ElementEventArgs(child));

            if (RealParent != null)
            {
                RealParent.OnDescendantAdded(child);
            }
        }
        private void OnDescendantAdded(Element child)
        {
            if (DescendantAdded != null)
            {
                DescendantAdded(this, new ElementEventArgs(child));
            }

            if (RealParent != null)
            {
                RealParent.OnDescendantAdded(child);
            }
        }
Example #3
0
 void OnDescendantAdded(Element child)
 {
     DescendantAdded?.Invoke(this, new ElementEventArgs(child));
     RealParent?.OnDescendantAdded(child);
 }