using System.Windows.Forms; using AT.STO.UI.Win; namespace Volian.Controls.Library { internal class DropDownNode : TreeNode, ILookupItem { #region Private Variable Declarations private readonly long _id = 0; #endregion #region Constructor / Destructor /// /// /// /// Some constructors initializing the node with Id. /// /// /// /// 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 Implementation public long Id { get { return _id; } } public new string Text { get { return base.Text; } } #endregion } }