using System.ComponentModel; namespace DPumpHydr.WinFrmUI.WenSkin.Controls { [TypeConverter(typeof(ExpandableObjectConverter))] public class TreeDataSourceNode { public TreeDataSourceNode() { TreeDataSource = false; ChildNode = ""; ParentNode = ""; RootContent = ""; } public TreeDataSourceNode(bool treeDataSource, string childNode, string parentNode, string rootContent) { TreeDataSource = treeDataSource; ChildNode = childNode; ParentNode = parentNode; RootContent = rootContent; } [DefaultValue(false), Category("Wen"), Description("是否绑定节点数据")] public bool TreeDataSource { get; set; } [DefaultValue(""), Category("Wen"), Description("父列")] public string ChildNode { get; set; } [DefaultValue(""), Category("Wen"), Description("子列")] public string ParentNode { get; set; } [DefaultValue(""), Category("Wen"), Description("Root节点")] public string RootContent { get; set; } public override string ToString() { return TreeDataSource.ToString(); } } }