public void Setup(UILayout mylayout) { UILayout pgtable = (UILayout)mylayout.GetWidget("pagetable"); var dest = new AtomicEngine.Vector <AtomicEngine.UIWidget>(); pgtable.SearchWidgetClass("TBButton", dest); for (var ii = 0; ii < dest.Size; ii++) // set bulk event handlers on all buttons -- boom! { dest[ii].SubscribeToEvent <WidgetEvent> (dest [ii], HandleTableEvent); } }