private void OnShowModelItemsRequested(IReadOnlyList<IModelNode> modelNodes, bool followNewDiagramNodes) { _diagramService.AddNodes(modelNodes.Select(i => i.Id)); if (followNewDiagramNodes) _uiService.FollowDiagramNodes(modelNodes.Select(i => i.Id).ToArray()); }
private void OnShowModelItemsRequested(IReadOnlyList <IModelNode> modelNodes, bool followNewDiagramNodes) { var diagramNodes = _diagramService.ShowModelNodes(modelNodes); if (followNewDiagramNodes) { _uiService.FollowDiagramNodes(diagramNodes); } }