C2026-043-Tech-Debt_v1 - Stash 1
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
using AT.STO.UI.Win;
|
||||
@@ -8,16 +7,9 @@ namespace Volian.Controls.Library
|
||||
internal class DropDownNode : TreeNode, ILookupItem<long>
|
||||
{
|
||||
#region Private Variable Declarations
|
||||
private long _id = 0;
|
||||
private readonly long _id = 0;
|
||||
#endregion
|
||||
#region Constructor / Destructor
|
||||
/// <summary>
|
||||
/// Default constructor.
|
||||
/// </summary>
|
||||
public DropDownNode() : base()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// /// <summary>
|
||||
/// Some constructors initializing the node with Id.
|
||||
@@ -29,26 +21,11 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
_id = Id;
|
||||
}
|
||||
|
||||
public DropDownNode(long Id, string Text, DropDownNode[] Children) : base(Text, Children)
|
||||
{
|
||||
_id = Id;
|
||||
}
|
||||
|
||||
public DropDownNode(long Id, string Text, int ImageIndex, int SelectedImageIndex) : base(Text, ImageIndex, SelectedImageIndex)
|
||||
{
|
||||
_id = Id;
|
||||
}
|
||||
|
||||
public DropDownNode(long Id, string Text, int ImageIndex, int SelectedImageIndex, DropDownNode[] Children) : base(Text, ImageIndex, SelectedImageIndex, Children)
|
||||
{
|
||||
_id = Id;
|
||||
}
|
||||
#endregion
|
||||
#region Public Methods
|
||||
public override string ToString()
|
||||
{
|
||||
return this.GetType().Name + " (Id=" + Id.ToString() + ", Name=" + Text + ")";
|
||||
return $"{this.GetType().Name} (Id={Id}, Name={Text})";
|
||||
}
|
||||
#endregion
|
||||
#region ILookupItem<long> Implementation
|
||||
|
||||
Reference in New Issue
Block a user