protected virtual GraphNodeViewModel CreateGraphNode(GraphSemanticModelForCodeMap graph, TreeViewModel tree) =>
 new GraphNodeViewModel(graph, tree, ExpandCreatedNodes);
Example #2
0
 protected virtual DacNodeViewModel CreateDacNode(DacSemanticModel dacSemanticModel, TreeViewModel tree) =>
 new DacNodeViewModel(dacSemanticModel, tree, ExpandCreatedNodes);
Example #3
0
 protected virtual GraphNodeViewModel CreateGraphNode(GraphSemanticModelForCodeMap graph, TreeViewModel tree, bool expand) =>
 new GraphNodeViewModel(graph, tree, expand);
Example #4
0
 protected virtual DacNodeViewModel CreateDacNode(DacSemanticModel dacSemanticModel, TreeViewModel tree, bool expand) =>
 new DacNodeViewModel(dacSemanticModel, tree, expand);
 protected override TreeNodeViewModel CreateRoot(ISemanticModel rootSemanticModel, TreeViewModel tree)
 {
     return(rootSemanticModel switch
     {
         GraphSemanticModelForCodeMap graphSemanticModel => CreateGraphNode(graphSemanticModel, tree),
         DacSemanticModel dacSemanticModel => CreateDacNode(dacSemanticModel, tree),
         _ => null,
     });
Example #6
0
        protected override TreeNodeViewModel CreateRoot(ISemanticModel rootSemanticModel, TreeViewModel tree, bool expandRoots,
                                                        CancellationToken cancellation)
        {
            switch (rootSemanticModel)
            {
            case GraphSemanticModelForCodeMap graphSemanticModel:
                return(CreateGraphNode(graphSemanticModel, tree, expandRoots));

            case DacSemanticModel dacSemanticModel:
                return(CreateDacNode(dacSemanticModel, tree, expandRoots));

            default:
                return(null);
            }
        }
Example #7
0
 protected abstract TreeNodeViewModel CreateRoot(ISemanticModel rootSemanticModel, TreeViewModel tree);
Example #8
0
 protected abstract TreeNodeViewModel CreateRoot(ISemanticModel rootSemanticModel, TreeViewModel tree, bool expandRoots,
                                                 CancellationToken cancellation);