mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-04-24 03:24:00 +00:00
19 lines
448 B
C#
19 lines
448 B
C#
|
|
using System.Collections.Generic;
|
||
|
|
|
||
|
|
namespace CMLeonOS.Gui.UILib
|
||
|
|
{
|
||
|
|
internal class TreeNode
|
||
|
|
{
|
||
|
|
internal TreeNode(string text, object tag = null)
|
||
|
|
{
|
||
|
|
Text = text;
|
||
|
|
Tag = tag;
|
||
|
|
}
|
||
|
|
|
||
|
|
internal string Text { get; set; }
|
||
|
|
internal object Tag { get; set; }
|
||
|
|
internal bool Expanded { get; set; } = false;
|
||
|
|
internal List<TreeNode> Children { get; } = new List<TreeNode>();
|
||
|
|
}
|
||
|
|
}
|