03-03-14, 09:05 AM
هذا مثال علي استخدام المسار لإضافة الابناء


PHP كود :
Private Function AddNodeWithPath(nodes As TreeNodeCollection, path As String) As TreeNode
Dim leaf = IO.Path.GetFileName(path)
If path <> leaf Then
nodes = AddNodeWithPath(nodes, IO.Path.GetDirectoryName(path)).Nodes
End If
Dim node = nodes.Find(leaf, False).FirstOrDefault()
If node Is Nothing Then
node = nodes.Add(leaf, leaf)
End If
Return node
End Function
PHP كود :
Dim nodes = TreeView1.Nodes
AddNodeWithPath(nodes, "Grandparent1\Parent1\Child1")


{ يَرْفَعِ اللَّهُ الَّذِينَ آمَنُوا مِنكُمْ وَالَّذِينَ أُوتُوا الْعِلْمَ دَرَجَاتٍ }
" Mohamed M. Bedair - " Abu Anas
Genius Live , Egypt

