TreeViewItem LoadElement(CFBElement Element) { TreeViewItem item = new TreeViewItem(); item.Header = Element.Entry.Name; foreach (CFBElement elem in Element.Children) { item.Items.Add(LoadElement(elem)); } return(item); }
void Load(CFBElement Root) { this.tvItem.Items.Clear(); this.tvItem.Items.Add(LoadElement(Root)); }