public void FocusComponent(IEnumerable <PIMDiagram> pimDiagrams, PIMComponent component, bool activateDiagramTab = true) { if (pimDiagrams.Count() == 1) { DiagramTabManager.ActivateDiagramWithElement(pimDiagrams.First(), component, activateDiagramTab); } else { throw new NotImplementedException("Focus component not implemented for the case where the component is present in zero or more than one diagram."); } }
public void FocusComponent(Diagram diagram, Component component, bool activateDiagramTab = true) { Component diagramComponent = component; DiagramTabManager.ActivateDiagramWithElement(diagram, diagramComponent, activateDiagramTab); }