public LSTreeNode(TreeNodeType type, string text) { this.Type = type; this.Text = text; this.Value = text; this.ImageKey = type.ToString(); }
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()); }