Пример #1
0
        void OnDescendantAdded(Element child)
        {
            DescendantAdded?.Invoke(this, new ElementEventArgs(child));

            if (RealParent != null)
            {
                RealParent.OnDescendantAdded(child);
            }
        }
Пример #2
0
        private void OnDescendantAdded(Element child)
        {
            if (DescendantAdded != null)
            {
                DescendantAdded(this, new ElementEventArgs(child));
            }

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