public override List <TreeNodeViewModel> VisitNode(AttributeNodeViewModel attributeNode, IEnumerable <TreeNodeViewModel> generatedChildren)
 {
     //Optimization for attributes - don't put more on execution stack by visiting them
     attributeNode.ChildrenSortType      = SortType;
     attributeNode.ChildrenSortDirection = SortDirection;
     return(DefaultValue);
 }
示例#2
0
 public virtual TResult VisitNode(AttributeNodeViewModel attributeNode, TInput input) => DefaultVisit(attributeNode, input);
 public override void VisitNode(AttributeNodeViewModel attributeNode)
 {
     //Optimization for attributes - don't put more on execution stack by visiting them
     attributeNode.ChildrenSortType      = SortContext.SortType;
     attributeNode.ChildrenSortDirection = SortContext.SortDirection;
 }
示例#4
0
 public virtual IEnumerable <TreeNodeViewModel> VisitNodeAndBuildChildren(AttributeNodeViewModel attributeNode, bool expandChildren,
                                                                          CancellationToken cancellation) =>
 Enumerable.Empty <TreeNodeViewModel>();
示例#5
0
 public virtual TResult VisitNode(AttributeNodeViewModel attributeNode) => DefaultVisit(attributeNode);