I'm adding Nodes to TreeView dynamically. I'm just creating labels and add them to nodes. My treeView looks like that:
TreeView 1
-Node 1
- Node 1.1
-Node 1.1.1
-Node 1.1.1.A
-Node 1.1.1.B
-Node 1.1.2
-Node 1.1.2.A
After click nodes, i want only do something if clicked node is: Node 1.1.1.A, Node 1.1.1B or Node 1.1.2.A. So i'm checking labels, but label in nodes 1.1.1 and 1.1.2 are changing in while loop so how can i check it?