public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { SearchNodeHistoryViewModel model = value as SearchNodeHistoryViewModel; List <string> ids = new List <string>(); FindAllVideo(model.Node, ids); return(ids); }
void addNewSourceAboutAllNodeChildren(List <CctvNode> nodes, List <SearchNodeHistoryViewModel> modellist, bool showThumbnails) { var nodelist = nodes?.Where(e => e.IsCctvNode()).ToList(); if (nodelist != null && nodelist.Count > 0) { nodelist?.ForEach(e => { SearchNodeHistoryViewModel model = new SearchNodeHistoryViewModel(AllowDrag); model.UpdateNode(e, showThumbnails); modellist.Add(model); }); } }
void addNewSourceAboutAllVideoChildren(List <CctvNode> nodes, List <SearchNodeHistoryViewModel> modellist) { var videolist = nodes?.Where(e => e.Type == CctvNode.NodeType.Video).ToList(); if (videolist != null && videolist.Count > 0) { var videoModel = new SearchNodeHistoryViewModel(AllowDrag); videoModel.UpdateNode(new CctvNode() { Name = "视频", Type = CctvNode.NodeType.Unknown, Children = videolist.ToArray() }, true); modellist.Add(videoModel); } }