示例#1
0
        static PhysicsTree()
        {
            root = ScienceNode.scienceNodeInst[typeof(Newton)];
            root.AddChild(ScienceNode.scienceNodeInst[typeof(Gauss)]);            
			root.AddChild (ScienceNode.scienceNodeInst[typeof(Mendeleev)]); 
			root.children[0].AddChild (ScienceNode.scienceNodeInst[typeof(Darwin)]); 
            //root.AddChild( ScienceNode.scienceNodeInst[typeof(Einstain)] );
            //root.children[1].AddChild( ScienceNode.scienceNodeInst[typeof(Fourier)] );
            //root.children[1].children[0].AddChild( ScienceNode.scienceNodeInst[typeof(Fatos)] );
        }
示例#2
0
 static BiologyTree()
 {
     root = ScienceNode.scienceNodeInst[typeof(Darwin)];
 }
示例#3
0
 public void AddChild(ScienceNode child)
 {
     children.Add(child);
     child.parent = this;
 }
示例#4
0
 public void AddChild(ScienceNode child)
 {
     children.Add(child);
     child.parent = this;
 }
示例#5
0
 static ChemistryTree()
 {
     root = ScienceNode.scienceNodeInst[typeof(Mendeleev)];
 }