Пример #1
0
        private bool AddAdditionalNode(NodeKey nodeKey, NodeGraph nodeGraph)
        {
            if (!_shouldIncludeNode(nodeKey, nodeGraph))
            {
                return(false);
            }

            if (_pinnedNodes.Contains(nodeKey))
            {
                // If node is already pinned, leave it pinned and don't do anything
                return(false);
            }

            return(_additionalNodes.Add(nodeKey));
        }
 public static Operation AddAllInSolution(NodeKey _) => new AddAllInSolutionOperation();
 public static Operation AddAllInSameProject(NodeKey rootNode) => new AddAllInSameProjectOperation(rootNode);
 public static Operation AddDirectInheritanceDependents(NodeKey rootNode) => new AddDirectDependenciesOrDependentsOperation(rootNode, true, LinkType.InheritsOrImplements);
 public static Operation AddInheritanceDependentHierarchy(NodeKey rootNode)
 => new AddDependencyOrDependentHierarchyOperation(rootNode, true, LinkType.InheritsOrImplements);
 public static Operation PinNodeAndNeighbours(NodeKey targetNode) => new PinNodeAndNeighboursOperation(targetNode);
 public AddAllInSameProjectOperation(NodeKey rootNodeKey)
 {
     this._rootNodeKey = rootNodeKey;
 }
 public static Operation SetSelected(NodeKey selected, bool includeConnectionsAsWell) => new UpdateSelectedOperation(selected, includeConnectionsAsWell);
 public AddDirectDependenciesOrDependentsOperation(NodeKey rootNodeKey, bool isDependent, LinkType dependencyRelationship)
 {
     _rootNodeKey            = rootNodeKey;
     _isDependent            = isDependent;
     _dependencyRelationship = dependencyRelationship;
 }
 public AddDependencyOrDependentHierarchyOperation(NodeKey rootNodeKey, bool isDependent, LinkType dependencyRelationship)
 {
     _rootNodeKey            = rootNodeKey;
     _isDependent            = isDependent;
     _dependencyRelationship = dependencyRelationship;
 }
 public PinNodeAndNeighboursOperation(NodeKey targetNode)
 {
     _targetNode = targetNode;
 }
 public UpdateSelectedOperation(NodeKey selected, bool includeConnectionsAsWell)
 {
     _selected = selected ?? throw new ArgumentNullException(nameof(selected));
     _includeConnectionsAsWell = includeConnectionsAsWell;
 }