Esempio n. 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            toolStripStatusLabel1.Text = "登陆时间" + DateTime.Now.ToString();
            toolStripButton4_Click(null, null);
            treeView1.Nodes.Clear();
            TreeXML TreeXml = new TreeXML();

            TreeXml.XMLToTree(starpath + @"\List.xml", treeView1);
        }
Esempio n. 2
0
        private void Form1_Load(object sender, EventArgs e)                //加载窗体
        {
            toolStripStatusLabel1.Text = "登录时间" + DateTime.Now.ToString(); //显示时间
            toolStripButton4_Click(null, null);                            //读取所有联系人信息,即一共有多少条联系人记录
            //读取组并显示在treeView1上
            treeView1.Nodes.Clear();                                       //这里是删除我们在安装控件时输入的一些树节点吧?
            TreeXML TreeXml = new TreeXML();                               //实例化对象

            TreeXml.XMLToTree(starpath + @"\List.xml", treeView1);         //调用方法
        }