public void PerformClickInteraction(Vector2 location) { foreach (var registered in this.clickableLocations.GetClickableLocations()) { if (registered.Location.Contains(location)) { switch (registered.RowDataType) { case RowDataType.Expander: rowExpanderClicker.Click(registered); return; case RowDataType.Content: case RowDataType.Icon: default: rowContentClicker.Click(registered); return; } } } }