mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-04-21 19:24:00 +00:00
加几个控件
This commit is contained in:
18
Gui/UILib/TreeNode.cs
Normal file
18
Gui/UILib/TreeNode.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user