public TNodeObject(TreeNode aTreeNode, TExtWebClientData ClientData, Object Container) { Node = aTreeNode; aTreeNode.Tag = this; FBlockItem = new TBlockItem(); PropertyInfo aInfo = Container.GetType().GetProperty("ID"); if (aInfo != null) { FBlockItem.Name = aInfo.GetValue(Container, null) as String; } FBlockItem.WebContainerControl = Container; ClientData.Blocks.Add(FBlockItem); }
public TNodeObject(TreeNode aTreeNode, TExtWebClientData ClientData) { Node = aTreeNode; aTreeNode.Tag = this; FBlockItem = new TBlockItem(); FBlockItem.Name = aTreeNode.Text; ClientData.Blocks.Add(FBlockItem); }