private bool HandleClickEvent(int x, int y) { if (designingControl != null) { foreach (NaviBand band in designingControl.Bands) { if ((band.Button != null) && (band.Button.Bounds.Contains(x, y))) { ArrayList list = new ArrayList(); list.Add(band); if (selectionService != null) { designingControl.SetActiveBand( selectionService.PrimarySelection as NaviBand); selectionService.SetSelectedComponents(list); return(true); } } } } return(false); }