public bool OnEvent(ITreeEvent e) { if (e is T typedEvent) { return(onEvent(typedEvent)); } return(false); }
public void RecievedEvent(ITreeEvent e) { var stopPropigation = eventListeners[e.EventType]?.OnEvent(e); if (stopPropigation.HasValue && stopPropigation.Value) { return; } this.parentEventNode?.RecievedEvent(e); }