Esempio n. 1
0
        public Modelchose()
        {
            InitializeComponent();

            //录入学科
            TreeNode t1, t2;

            SearchQueManager = new DataPumpSearchQueManager();
            m_class          = SearchQueManager.SetOfClassification();
            for (int i = 0; i < m_class.Count(); i++)
            {
                //TreeNode []tmp = this.m_tvSubStru.Nodes.Find(this.m_class[i].Cla[0], false);
                TreeNode tmp = findPaNode(this.m_class[i].Cla[0]);
                if (tmp == null)
                {
                    t1     = new TreeNode(m_class[i].Cla[0]);
                    t1.Tag = m_class[i].cId;

                    t2     = new TreeNode(m_class[i].Cla[1]);
                    t2.Tag = m_class[i].cId;
                    t1.Nodes.Add(t2);
                    this.m_tvSubStru.Nodes.Add(t1);
                }
                else
                {
                    t1     = new TreeNode(m_class[i].Cla[1]);
                    t1.Tag = m_class[i].cId;
                    tmp.Nodes.Add(t1);
                }
            }
        }