- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTreeViewMethods.cs
More file actions
Latest commit
30 lines (30 loc) · 787 Bytes
/
Copy pathTreeViewMethods.cs
File metadata and controls
30 lines (30 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingHtmlAgilityPack;
usingSystem.Windows.Forms;
namespaceHtml_Css
{
classTreeViewMethods
{
publicstaticvoidBindTreeView(HtmlNodenode,TreeNodetnode)
{
//tnode.Tag = node;
TreeNodetn;
if(node.HasChildNodes)
{
foreach(HtmlNodeninnode.ChildNodes)
{
if(n.Name=="#text")continue;
else
{
tn=tnode.Nodes.Add(n.Name);
BindTreeView(n,tn);
}
}
}
}
}
}