Beispiel #1
0
 public TreeViewTerm(Term rootTerm)
 {
     _parent     = null;
     _term       = rootTerm;
     _name       = rootTerm.GetDefaultLabel(1033);
     _guidString = rootTerm.Id.ToString();
 }
Beispiel #2
0
 /// <summary>
 /// Public constructor
 /// </summary>
 /// <param name="term">The underlying Term object that is being wrapped</param>
 public TreeViewTerm(TreeViewTerm parent, Term term)
 {
     _parent     = parent;
     _term       = term;
     _name       = term.GetDefaultLabel(1033);
     _guidString = term.Id.ToString();
 }
Beispiel #3
0
        public TreeViewTerm(TermSet termSet)
        {
            _parent     = null;
            _term       = null;
            _name       = termSet.Name;
            _guidString = "";

            _children = new TreeViewTermCollection();

            foreach (Term term in termSet.Terms)
            {
                if (term.IsAvailableForTagging)
                {
                    _children.Add(new TreeViewTerm(this, term));
                }
            }
        }