日期:2014-05-17 浏览次数:21017 次
/// <summary> /// 数据加载 /// </summary> private void LoadData() { try { treeList_File.Nodes.Clear(); string indexpagevcode = System.Environment.CurrentDirectory + "\\公司库"; TreeListNode parentNode = treeList_File.AppendNode(new string[] { "公司库", "", indexpagevcode }, 0); GetAllDirList(indexpagevcode, parentNode); this.treeList_File.SelectImageList = this.imageList1; } catch (Exception e) { Program.MsgBoxError(e); } } /// <summary> /// 数据绑定 /// </summary> /// <param name="strBaseDir">地址</param> /// <param name="parentNode">根节点</param> void GetAllDirList(string strBaseDir, TreeListNode parentNode) { //Process.Start("net.exe"," use \\server\share password"); //Process.StartInfo.CreateNoWindow = true; //Process.St