Exemplo n.º 1
0
        protected override void OnExpanded(System.Windows.RoutedEventArgs e)
        {
            base.OnExpanded(e);

            foreach (object obj in Items)
            {
                TagTreeViewItem item = obj as TagTreeViewItem;
                item.Populate(this.tagManager);
            }
        }
Exemplo n.º 2
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();
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 4
0
        private void TagTreeView_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs<object> e)
        {
            DBManger dbManager = new DBManger();
            selectedItem = e.NewValue as TagTreeViewItem;

            string query = "SELECT * FROM TAGTABLE WHERE TAGID LIKE '%" + selectedItem.TagCategory.TagId +"%'";
            dbManager.Query = query;
            dbManager.execute(ref _TagedItemCollection);
        }