public void ShowRelatedEntities(Entity entity, int degreeOfRelationshipsToShow, bool showTables) { if (entity == null) { return; } var filter = new RelatedEntitiesFilter(this, controller, entity); filter.DegreeOfRelationshipsToShow = degreeOfRelationshipsToShow; filter.ShowTables = showTables; filter.RunFilter(); SetCurrentFilter(filter); RunLayout(); controller.SetEntityAsSelected(entity); }