FolderNode.cs
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:1k
- using System;
- using System.Windows.Forms;
- using System.IO;
- namespace FolderTree
- {
- /// <summary>
- /// Summary description for DiskObject.
- /// </summary>
- public class FolderNode : System.Windows.Forms.TreeNode
- {
-
- string _folderPath = "";
- DirectoryInfo _info;
- public FolderNode(string folderPath)
- {
- _folderPath = folderPath;
- _info = new DirectoryInfo(folderPath);
- this.Text = _info.Name;
- }
-
- public string FolderPath
- {
- get {return _folderPath;}
- set {_folderPath = value;}
- }
- public DirectoryInfo FolderNodeInfo
- {
- get {return _info;}
- }
-
- }
- }