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))); }
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))); }