private void radTreeView1_NodesNeeded(object sender, NodesNeededEventArgs args) { if (args.Parent == null) { LoadRoot(args.Nodes); return; } if (args.Parent.Text == "Favorites") { LoadFavorites(args.Nodes); } else if (args.Parent.Text == "Libraries") { LoadLibraries(args.Nodes); args.Parent.Expand(); } else if (args.Parent.Text == "Computer") { LoadComputer(args.Nodes); } else if (args.Parent.Text == "Network") { LoadNetwork(args.Nodes); } else if (args.Parent.Text == "System") { LoadSystem(args.Nodes); } }
private void radTreeView1_NodesNeeded(object sender, NodesNeededEventArgs e) { LoadNodesForParent(e.Parent, e.Nodes); }