示例#1
0
        void UpdateRelation(String value)
        {
            if (_relation != null)
            {
                _relation.Cancel();
            }

            _relation = Factory.LinkRelations.Create(this, Relation);
            UpdateSource(this.GetOwnAttribute(AttributeNames.Href));
        }
示例#2
0
        void UpdateRelation(String value)
        {
            if (_relation != null)
            {
                //TODO
                //_relation.Cancel();
            }

            _relation = CreateFirstLegalRelation();
            UpdateSource(this.GetOwnAttribute(AttributeNames.Href));
        }
        internal override void SetupElement()
        {
            var rel = this.GetOwnAttribute(AttributeNames.Rel);

            if (rel != null)
            {
                _relList?.Update(rel);
                _relation = CreateFirstLegalRelation();
            }

            base.SetupElement();
        }
示例#4
0
 internal void UpdateRelation(String value)
 {
     _relList?.Update(value);
     _relation = CreateFirstLegalRelation();
     UpdateSource(this.GetOwnAttribute(AttributeNames.Href));
 }