Exemple #1
0
        public ViewNodeViewModel(ViewCategoryNodeViewModel viewCategoryVM, DataViewInfo viewInfo, bool isExpanded = false) :
            base(viewCategoryVM, viewCategoryVM, viewInfo, isExpanded)
        {
            NodeIcon = GetIcon();
            var infos = GetExtraInfos();

            if (infos.Any())
            {
                ExtraInfos = new ExtendedObservableCollection <ExtraInfoViewModel>(infos);
            }
        }
 public virtual TResult VisitNode(ViewCategoryNodeViewModel viewCategory) => DefaultVisit(viewCategory);
 public virtual TResult VisitNode(ViewCategoryNodeViewModel viewCategory, TInput input) => DefaultVisit(viewCategory, input);
Exemple #4
0
 public override IEnumerable <TreeNodeViewModel> VisitNodeAndBuildChildren(ViewCategoryNodeViewModel viewCategory, bool expandChildren, CancellationToken cancellation)
 {
     return(CreateGraphCategoryChildren <DataViewInfo>(viewCategory, expandChildren, constructor: viewInfo => new ViewNodeViewModel(viewCategory, viewInfo),
                                                       cancellation));
 }
Exemple #5
0
 public ViewNodeViewModel(ViewCategoryNodeViewModel viewCategoryVM, DataViewInfo viewInfo, bool isExpanded = false) :
     base(viewCategoryVM, viewInfo, isExpanded)
 {
 }
 public virtual IEnumerable <TreeNodeViewModel> VisitNodeAndBuildChildren(ViewCategoryNodeViewModel viewCategory, bool expandChildren,
                                                                          CancellationToken cancellation) =>
 Enumerable.Empty <TreeNodeViewModel>();