Exemplo n.º 1
0
        public DiagramNodeViewModel(
            [NotNull] IModelEventSource modelEventSource,
            [NotNull] IDiagramEventSource diagramEventSource,
            [NotNull] IDiagramNode diagramNode,
            [NotNull] IRelatedNodeTypeProvider relatedNodeTypeProvider,
            [NotNull] IWpfFocusTracker <IDiagramShapeUi> focusTracker,
            [NotNull] IDiagramNodeHeaderUi header)
            : base(modelEventSource, diagramEventSource, diagramNode)
        {
            RelatedNodeTypeProvider  = relatedNodeTypeProvider;
            FocusTracker             = focusTracker;
            RelatedNodeCueViewModels = CreateRelatedNodeCueViewModels();
            Header = header;

            SetDiagramNodeProperties(diagramNode);
        }
Exemplo n.º 2
0
 public RoslynDiagramNodeViewModel(
     [NotNull] IModelEventSource modelEventSource,
     [NotNull] IDiagramEventSource diagramEventSource,
     [NotNull] IDiagramNode diagramNode,
     [NotNull] IRelatedNodeTypeProvider relatedNodeTypeProvider,
     [NotNull] IWpfFocusTracker <IDiagramShapeUi> focusTracker,
     bool isDescriptionVisible,
     [NotNull] ISymbol symbol,
     RoslynDiagramNodeHeaderViewModelBase header)
     : base(
         modelEventSource,
         diagramEventSource,
         diagramNode,
         relatedNodeTypeProvider,
         focusTracker,
         header)
 {
     _isDescriptionVisible = isDescriptionVisible;
     _symbol = symbol;
     Name    = symbol.GetName();
 }