44 lines
859 B
C#
44 lines
859 B
C#
using System.Windows.Forms;
|
|
|
|
using AT.STO.UI.Win;
|
|
|
|
namespace Volian.Controls.Library
|
|
{
|
|
internal class DropDownNode : TreeNode, ILookupItem<long>
|
|
{
|
|
#region Private Variable Declarations
|
|
private readonly long _id = 0;
|
|
#endregion
|
|
#region Constructor / Destructor
|
|
/// <summary>
|
|
/// /// <summary>
|
|
/// Some constructors initializing the node with Id.
|
|
/// </summary>
|
|
/// </summary>
|
|
/// <param name="Id"></param>
|
|
/// <param name="Text"></param>
|
|
public DropDownNode(long Id, string Text) : base(Text)
|
|
{
|
|
_id = Id;
|
|
}
|
|
#endregion
|
|
#region Public Methods
|
|
public override string ToString()
|
|
{
|
|
return $"{this.GetType().Name} (Id={Id}, Name={Text})";
|
|
}
|
|
#endregion
|
|
#region ILookupItem<long> Implementation
|
|
public long Id
|
|
{
|
|
get { return _id; }
|
|
}
|
|
|
|
public new string Text
|
|
{
|
|
get { return base.Text; }
|
|
}
|
|
#endregion
|
|
}
|
|
}
|