Пример #1
0
        public virtual void AddChildren()
        {
            this.Nodes.Clear();
            foreach (IPropertyMap propertyMap in this.classMap.GetAllPropertyMaps())
            {
                TreeNode child = new PropertyTreeNode(this.context, this.obj, propertyMap.Name);
                this.Nodes.Add(child);
//				if (propertyMap.ReferenceType != ReferenceType.None)
//				{
//				}
            }
            foreach (MethodInfo methodInfo in obj.GetType().GetMethods())
            {
                bool show = ShowMethod(methodInfo);
                if (show)
                {
                    TreeNode child = new MethodTreeNode(this.context, this.obj, methodInfo);
                    this.Nodes.Add(child);
                }
            }
        }
Пример #2
0
 public virtual void AddChildren()
 {
     this.Nodes.Clear() ;
     foreach (IPropertyMap propertyMap in this.classMap.GetAllPropertyMaps() )
     {
         TreeNode child = new PropertyTreeNode(this.context, this.obj,  propertyMap.Name);
         this.Nodes.Add(child);
     //				if (propertyMap.ReferenceType != ReferenceType.None)
     //				{
     //				}
     }
     foreach (MethodInfo methodInfo in obj.GetType().GetMethods())
     {
         bool show = ShowMethod(methodInfo);
         if (show)
         {
             TreeNode child = new MethodTreeNode(this.context, this.obj,  methodInfo);
             this.Nodes.Add(child);
         }
     }
 }