Beispiel #1
0
        protected virtual void OnControlTreeChanged(ControlTreeChangedEventArgs args)
        {
            (this.Parent as SplitPanel)?.OnControlTreeChanged(args);
            ControlTreeChangedEventHandler changedEventHandler = this.Events[SplitPanel.ControlTreeChangedEventKey] as ControlTreeChangedEventHandler;

            if (changedEventHandler == null)
            {
                return;
            }
            changedEventHandler((object)this, args);
        }
Beispiel #2
0
        protected internal virtual void OnControlTreeChanged(ControlTreeChangedEventArgs args)
        {
            SplitPanel parent = this.Parent as SplitPanel;

            if (parent != null)
            {
                parent.OnControlTreeChanged(args);
            }

            ControlTreeChangedEventHandler eh = this.Events[ControlTreeChangedEventKey] as ControlTreeChangedEventHandler;

            if (eh != null)
            {
                eh(this, args);
            }
        }