示例#1
0
/**************************版本信息结束*******************************************************************/
/**************************项目信息开始*******************************************************************/
        private void getAllProjectInfo()
        {
            this.textBox4.Text = null;
            this.textBox3.Text = null;
            this.textBox7.Text = null;
            this.textBox8.Text = null;
            projectlist        = ProjectInfoDao.getAllProjectInfo();
            projectlist2       = ProjectInfoDao.getAllProjectInfo();
            this.listView2.Items.Clear();
            foreach (ProjectInfo project in projectlist)
            {
                ListViewBingForProject(project);
            }
        }
示例#2
0
        void getAllProjectPath()
        {
            projects = ProjectInfoDao.getAllProjectInfo();
            List <ProjectInfo> selprojects = ProjectInfoDao.getAllProjectInfoByModuleid(Int32.Parse(this.comboBox1.SelectedValue.ToString()));

            this.treeView1.Nodes.Clear();
            for (int i = 0; i < projects.Count; i++)
            {
                TreeNode tmp;
                tmp     = new TreeNode(@projects[i].Projectname);
                tmp.Tag = @projects[i].Projectpath;
                this.treeView1.Nodes.Add(tmp);
                for (int j = 0; j < selprojects.Count; j++)
                {
                    if (selprojects[j].Equals(projects[i]))
                    {
                        tmp.Checked = true;
                    }
                }
            }
        }