Exemple #1
0
        public void Populate([NotNull] VIsan vIsan)
        {
            vIsan.Parent = Parent != null?Parent.ToIsan() : null;

            vIsan.Title     = Title;
            vIsan.Year      = Year;
            vIsan.LengthMin = LengthMin;
        }
        private void SetParent(VIsan vIsan, CQ dom)
        {
            if (_token.IsCancelled || dom == null)
                return;

            var titles = dom["a[href*=\"javascript:publicDisplayWork\"]"];
            titles.ForEach(delegate(IDomObject o)
                {
                    var href = (o.GetAttribute("href") ?? "").Trim();
                    if (Isan.IsIsan(href))
                    {
                        vIsan.Parent = Isan.TryParse(href);
                    }
                });
        }
        private void PopulateParent(VIsan vIsan)
        {
            if (_token.IsCancelled || vIsan.Parent == null)
                return;

            var dom = GetDom(vIsan.Parent);

            Populate(vIsan.Parent, dom);
        }