示例#1
0
 public LSTreeNode(TreeNodeType type, string text)
 {
     this.Type     = type;
     this.Text     = text;
     this.Value    = text;
     this.ImageKey = type.ToString();
 }
示例#2
0
 public static string ToTypeString(this TreeNodeType _this)
 {
     if (s_typeNames.TryGetValue(_this, out string name))
     {
         return(name);
     }
     if (!Enum.IsDefined(typeof(TreeNodeType), _this))
     {
         return($"Unknown {(int)_this}");
     }
     return(_this.ToString());
 }