예제 #1
0
        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);
        }
예제 #2
0
        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);
                });
            }
        }
예제 #3
0
        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);
            }
        }