Пример #1
0
        protected override bool LoadFromLinkNode(HtmlNode linkNode)
        {
            if (!base.LoadFromLinkNode(linkNode))
            {
                return false;
            }

            String rawUrl = linkNode.GetLinkUrl(null);

            if (rawUrl.Contains("/article_t/"))
            {
                String[] tokens = rawUrl.Split('/');

                if (tokens.Length >= 4)
                {
                    BoardName = tokens[2];
                    return true;
                }
            }

            return false;
        }