|
|
|
@ -13,7 +13,7 @@ namespace ConsoleApp.Menu
|
|
|
|
|
internal abstract partial class Entry : Menu<Entry.EntryStep>
|
|
|
|
|
{
|
|
|
|
|
#region Attributes & Properties
|
|
|
|
|
private List<EntryStep> _steps = new List<EntryStep>();
|
|
|
|
|
private List<EntryStep> _steps;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Constructors
|
|
|
|
@ -56,7 +56,7 @@ namespace ConsoleApp.Menu
|
|
|
|
|
if (cki.Key == ConsoleKey.Escape)
|
|
|
|
|
{
|
|
|
|
|
if (CurrentSelected is null)
|
|
|
|
|
throw new Exception("Error: CurrentSelected is null.");
|
|
|
|
|
throw new ArgumentNullException("Error: CurrentSelected is null.");
|
|
|
|
|
|
|
|
|
|
CurrentSelected.Input = InputStr.ToString();
|
|
|
|
|
DisableWriteMode();
|
|
|
|
@ -76,7 +76,7 @@ namespace ConsoleApp.Menu
|
|
|
|
|
|
|
|
|
|
public override void Update()
|
|
|
|
|
{
|
|
|
|
|
if (_selectList == null || _selectList.Count == 0)
|
|
|
|
|
if (_selectList.Count == 0)
|
|
|
|
|
{
|
|
|
|
|
CurrentSelected = default;
|
|
|
|
|
return;
|
|
|
|
@ -102,12 +102,12 @@ namespace ConsoleApp.Menu
|
|
|
|
|
_screenDisplay.Append($"{_selectList[i].Line} {_selectList[i].Item.Input}");
|
|
|
|
|
|
|
|
|
|
if (CurrentLine == i && WriteMode)
|
|
|
|
|
_screenDisplay.Append(InputStr.ToString());
|
|
|
|
|
_screenDisplay.Append(InputStr);
|
|
|
|
|
|
|
|
|
|
_screenDisplay.AppendLine();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (_selectList == null || _selectList.Count == 0)
|
|
|
|
|
if (_selectList.Count == 0)
|
|
|
|
|
_screenDisplay.AppendLine("Empty...");
|
|
|
|
|
|
|
|
|
|
_screenDisplay.AppendLine(
|
|
|
|
|