Ejemplo n.º 1
0
        public SPOTermLabel(Label label, SPOTerm term)
        {
            _label = label;
            _term = term;

            if (_label.IsPropertyAvailable("Value"))
                SetProp("Value", _label.Value, false);
        }
Ejemplo n.º 2
0
        public SPOTermLabel(Label label, SPOTerm term)
        {
            _label = label;
            _term  = term;

            if (_label.IsPropertyAvailable("Value"))
            {
                SetProp("Value", _label.Value, false);
            }
        }
Ejemplo n.º 3
0
        //public LabelCollection Labels { get; }


        public override void Refresh()
        {
            _term.RefreshLoad();
            _term.Context.ExecuteQuery();
            base.Refresh();

            _reusedTerms      = null;
            _pinSourceTermSet = null;
            _sourceTerm       = null;
            _parentTerm       = null;
            _termSets         = null;
            _termSet          = null;
            _labels           = null;
        }
Ejemplo n.º 4
0
        public SPOTerm GetSourceTerm()
        {
            if (_sourceTerm != null)
            {
                return(_sourceTerm);
            }

            var sourceTerm = _term.SourceTerm;

            _term.Context.Load(sourceTerm);
            _term.Context.ExecuteQuery();

            _sourceTerm = new SPOTerm(sourceTerm);
            return(_sourceTerm);
        }
Ejemplo n.º 5
0
        public SPOTerm GetParentTerm()
        {
            if (_parentTerm != null)
            {
                return(_parentTerm);
            }

            var parentTerm = _term.Parent;

            _term.Context.Load(parentTerm);
            _term.Context.ExecuteQuery();

            _parentTerm = new SPOTerm(parentTerm);
            return(_parentTerm);
        }
Ejemplo n.º 6
0
        //public LabelCollection Labels { get; }
        public override void Refresh()
        {
            _term.RefreshLoad();
            _term.Context.ExecuteQuery();
            base.Refresh();

            _reusedTerms = null;
            _pinSourceTermSet = null;
            _sourceTerm = null;
            _parentTerm = null;
            _termSets = null;
            _termSet = null;
            _labels = null;
        }
Ejemplo n.º 7
0
        public SPOTerm GetSourceTerm()
        {
            if (_sourceTerm != null) return _sourceTerm;

            var sourceTerm = _term.SourceTerm;
            _term.Context.Load(sourceTerm);
            _term.Context.ExecuteQuery();

            _sourceTerm = new SPOTerm(sourceTerm);
            return _sourceTerm;
        }
Ejemplo n.º 8
0
        public SPOTerm GetParentTerm()
        {
            if (_parentTerm != null) return _parentTerm;

            var parentTerm = _term.Parent;
            _term.Context.Load(parentTerm);
            _term.Context.ExecuteQuery();

            _parentTerm = new SPOTerm(parentTerm);
            return _parentTerm;
        }