public bool OnEvent(ITreeEvent e)
 {
     if (e is T typedEvent)
     {
         return(onEvent(typedEvent));
     }
     return(false);
 }
예제 #2
0
        public void RecievedEvent(ITreeEvent e)
        {
            var stopPropigation = eventListeners[e.EventType]?.OnEvent(e);

            if (stopPropigation.HasValue && stopPropigation.Value)
            {
                return;
            }
            this.parentEventNode?.RecievedEvent(e);
        }