Example #1
0
 public override IEnumerable <TreeNodeViewModel> VisitNodeAndBuildChildren(DacGroupingNodeForCacheAttachedEventViewModel dacGroupingNode,
                                                                           bool expandChildren, CancellationToken cancellation)
 {
     return(dacGroupingNode?.AllFieldEvents.Select(fieldEvent => new CacheAttachedNodeViewModel(dacGroupingNode, fieldEvent, expandChildren))
            .Where(graphMemberVM => !graphMemberVM.Name.IsNullOrEmpty())
            .OrderBy(graphMemberVM => graphMemberVM.Name));
 }
        public override List <TreeNodeViewModel> VisitNode(DacGroupingNodeForCacheAttachedEventViewModel dacGroupingNode,
                                                           IEnumerable <TreeNodeViewModel> generatedChildren)
        {
            SortType oldSortType = SortType;

            try
            {
                SortType = SortType.Alphabet;
                return(base.VisitNode(dacGroupingNode, generatedChildren));
            }
            finally
            {
                SortType = oldSortType;
            }
        }
 public virtual TResult VisitNode(DacGroupingNodeForCacheAttachedEventViewModel dacGroupingNode) => DefaultVisit(dacGroupingNode);
 public virtual IEnumerable <TreeNodeViewModel> VisitNodeAndBuildChildren(DacGroupingNodeForCacheAttachedEventViewModel dacGroupingNode, bool expandChildren,
                                                                          CancellationToken cancellation) =>
 Enumerable.Empty <TreeNodeViewModel>();