Ejemplo n.º 1
0
        public virtual bool ContentEquals(IWebLink another)
        {
            if (another == null)
            {
                return(false);
            }

            return(Url == another.Url && Description == another.Description && Category == another.Category);
        }
Ejemplo n.º 2
0
        public WebLinkImageDrop(IWebLink webLink)
        {
            if (webLink == null)
            {
                throw new ArgumentNullException("webLink");
            }

            WebLink = webLink;
        }
Ejemplo n.º 3
0
        public WebLinkDrop(IPortalLiquidContext portalLiquidContext, IWebLink webLink) : base(portalLiquidContext, webLink.Entity)
        {
            if (webLink == null)
            {
                throw new ArgumentNullException("webLink");
            }

            WebLink = webLink;

            Image = WebLink.HasImage ? new WebLinkImageDrop(WebLink) : null;

            _webLinks = new Lazy <WebLinkDrop[]>(() => WebLink.WebLinks.Select(e => new WebLinkDrop(this, e)).ToArray(), LazyThreadSafetyMode.None);
        }