public void Populate(TagManagerElementData _tagManager)
        {
            Items.Clear();
            List <TagCategory> tagObjs;

            this.tagManager = _tagManager;

            try
            {
                tagObjs = tagObj.getSubtag(tagManager.allTags);
            }
            catch (System.Exception ex)
            {
                return;
            }

            foreach (TagCategory tagObj in tagObjs)
            {
                //tagObj의 하위까지 복사된다.
                //Items.Add(new TagTreeViewItem(tagObj));

                TagCategory tmp = new TagCategory();
                tmp.TagId   = tagObj.TagId;
                tmp.TagName = tagObj.TagName;
                tmp.SubTag  = tagObj.SubTag;
                Items.Add(new TagTreeViewItem(tmp));
            }
        }
        public void Populate(TagManagerElementData _tagManager)
        {
            Items.Clear();
            List<TagCategory> tagObjs;
            this.tagManager = _tagManager;

            try
            {
                tagObjs = tagObj.getSubtag(tagManager.allTags);
            }
            catch (System.Exception ex)
            {
                return;
            }

            foreach (TagCategory tagObj in tagObjs)
            {
                //tagObj의 하위까지 복사된다.
                //Items.Add(new TagTreeViewItem(tagObj));

                TagCategory tmp = new TagCategory();
                tmp.TagId = tagObj.TagId;
                tmp.TagName = tagObj.TagName;
                tmp.SubTag = tagObj.SubTag;
                Items.Add(new TagTreeViewItem(tmp));
            }
        }
Beispiel #3
0
        public void RefreshTree()
        {
            //BeginInit();
            Items.Clear();

            TagManagerElementData tagManager = new TagManagerElementData();

            foreach (TagCategory tagObj in tagManager.allTags)
            {
                if(tagObj.SubTag.Length > 0)
                {
                    TagTreeViewItem item = new TagTreeViewItem(tagObj);
                    item.Text = tagObj.TagName;
                    Items.Add(item);
                    item.Populate(tagManager);
                }
                EndInit();
            }
        }
Beispiel #4
0
        public void RefreshTree()
        {
            //BeginInit();
            Items.Clear();

            TagManagerElementData tagManager = new TagManagerElementData();

            foreach (TagCategory tagObj in tagManager.allTags)
            {
                if (tagObj.SubTag.Length > 0)
                {
                    TagTreeViewItem item = new TagTreeViewItem(tagObj);
                    item.Text = tagObj.TagName;
                    Items.Add(item);
                    item.Populate(tagManager);
                }
                EndInit();
            }
        }