private IMouseButtonHandler FindHandlingGraphic(CallHandlerMethodDelegate handlerDelegate) { if (_tile.PresentationImage is PresentationImage) { CompositeGraphic sceneGraph = ((PresentationImage)_tile.PresentationImage).SceneGraph; foreach (IMouseButtonHandler handler in GetHandlerGraphics(sceneGraph)) { if (handlerDelegate(handler)) { return(handler); } } } return(null); }
private IMouseButtonHandler FindHandlingGraphic(CallHandlerMethodDelegate handlerDelegate) { if (_tile.PresentationImage is PresentationImage) { CompositeGraphic sceneGraph = ((PresentationImage) _tile.PresentationImage).SceneGraph; foreach (IMouseButtonHandler handler in GetHandlerGraphics(sceneGraph)) { if (handlerDelegate(handler)) return handler; } } return null; }