示例#1
0
        private bool DetermineIsChildOfListView(IMedia source)
        {
            // map the IsChildOfListView (this is actually if it is a descendant of a list view!)
            var parent = _mediaService.GetParent(source);

            return(parent != null && (parent.ContentType.IsContainer || _mediaTypeService.HasContainerInPath(parent.Path)));
        }
示例#2
0
        public bool Resolve(IMedia source, MediaItemDisplay destination, bool destMember, ResolutionContext context)
        {
            // map the IsChildOfListView (this is actually if it is a descendant of a list view!)
            var parent = _mediaService.GetParent(source);

            return(parent != null && (parent.ContentType.IsContainer || _mediaTypeService.HasContainerInPath(parent.Path)));
        }