From 3249b270c5bd2f33aaa878e17bcc0f570cc8ea56 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Tue, 16 Feb 2016 13:53:03 +0100 Subject: [PATCH] add FindByName in HostContainer --- src/OpenTKGameWindow.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/OpenTKGameWindow.cs b/src/OpenTKGameWindow.cs index bc5c5cc4..862d25db 100644 --- a/src/OpenTKGameWindow.cs +++ b/src/OpenTKGameWindow.cs @@ -177,7 +177,15 @@ namespace Crow GraphicObjects.RemoveAt (0); } } - + public GraphicObject FindByName (string nameToFind) + { + foreach (GraphicObject w in GraphicObjects) { + GraphicObject r = w.FindByName (nameToFind); + if (r != null) + return r; + } + return null; + } #region Events //those events are raised only if mouse isn't in a graphic object public event EventHandler MouseWheelChanged; -- 2.47.3