You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.9 KiB
81 lines
1.9 KiB
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
using System.Threading.Tasks; |
|
using System.Windows.Controls; |
|
|
|
namespace Kingo.Plugin.ResultsOfProof.Model |
|
{ |
|
public class TreeNode |
|
{ |
|
#region Property |
|
|
|
private string _Text; |
|
/// <summary> |
|
/// 显示的文本值 |
|
/// </summary> |
|
public string Name |
|
{ |
|
get { return this._Text; } |
|
set { this._Text = value; } |
|
} |
|
private ContextMenu _cMenu; |
|
public ContextMenu cMenu |
|
{ |
|
get { return this._cMenu; } |
|
set { this._cMenu = value; } |
|
} |
|
private bool? _Checked; |
|
/// <summary> |
|
/// 是否选中 |
|
/// </summary> |
|
public bool? Checked |
|
{ |
|
get { return this._Checked; } |
|
set { this._Checked = value; } |
|
} |
|
|
|
private bool _IsExpanded; |
|
/// <summary> |
|
/// 是否展开 |
|
/// </summary> |
|
public bool IsExpanded |
|
{ |
|
get { return this._IsExpanded; } |
|
set { this._IsExpanded = value; } |
|
} |
|
|
|
/// <summary> |
|
/// 节点图标:相对路径 |
|
/// </summary> |
|
public string Icon { get; set; } |
|
|
|
/// <summary> |
|
/// 子节点,默认null |
|
/// </summary> |
|
public IList<TreeNode> Nodes { get; set; } |
|
|
|
/// <summary> |
|
/// 该节点数据项,默认null |
|
/// </summary> |
|
public virtual object Data { get; set; } |
|
|
|
public virtual bool IsOpenEdit { get; set; } |
|
|
|
#endregion |
|
|
|
#region NodeX-构造函数(初始化) |
|
|
|
/// <summary> |
|
/// NodeX-构造函数(初始化) |
|
/// </summary> |
|
public TreeNode() |
|
{ |
|
this.Name = string.Empty; |
|
this.Icon = string.Empty; |
|
this.Checked = false; |
|
} |
|
#endregion |
|
} |
|
}
|
|
|