public ToolTreeNode() : base() { this.type = ToolTreeNodeType.File; this.ImageIndex = 0; this.SelectedImageIndex = 0; this.fullPath = ""; this.name = ""; }
public ToolTreeNode(string fullPath, ToolTreeNodeType type) : base((new DirectoryInfo(fullPath)).Name) { this.type = type; this.ImageIndex = 0; this.SelectedImageIndex = 0; if (type == ToolTreeNodeType.Directory) { this.ImageIndex = 1; this.SelectedImageIndex = 1; } this.fullPath = fullPath; this.name = (new FileInfo(fullPath)).Name; }