static void GetChildEventBridges(string strType, Container container, List <EventBridge> bridges) { EventBridge bridge = container.TryGetEventBridge(strType); if (bridge != null) { bridges.Add(bridge); } if (container.gOwner != null) { bridge = container.gOwner.TryGetEventBridge(strType); if (bridge != null && !bridge.isEmpty) { bridges.Add(bridge); } } int count = container.numChildren; for (int i = 0; i < count; ++i) { DisplayObject obj = container.GetChildAt(i); if (obj is Container) { GetChildEventBridges(strType, (Container)obj, bridges); } else { bridge = obj.TryGetEventBridge(strType); if (bridge != null && !bridge.isEmpty) { bridges.Add(bridge); } if (obj.gOwner != null) { bridge = obj.gOwner.TryGetEventBridge(strType); if (bridge != null && !bridge.isEmpty) { bridges.Add(bridge); } } } } }
static void GetChildEventBridges(string strType, Container container, List<EventBridge> bridges) { EventBridge bridge = container.TryGetEventBridge(strType); if (bridge != null) bridges.Add(bridge); if (container.gOwner != null) { bridge = container.gOwner.TryGetEventBridge(strType); if (bridge != null && !bridge.isEmpty) bridges.Add(bridge); } int count = container.numChildren; for (int i = 0; i < count; ++i) { DisplayObject obj = container.GetChildAt(i); if (obj is Container) GetChildEventBridges(strType, (Container)obj, bridges); else { bridge = obj.TryGetEventBridge(strType); if (bridge != null && !bridge.isEmpty) bridges.Add(bridge); if (obj.gOwner != null) { bridge = obj.gOwner.TryGetEventBridge(strType); if (bridge != null && !bridge.isEmpty) bridges.Add(bridge); } } } }