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.
26 lines
711 B
26 lines
711 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using ConsoleApp.Menu.Core;
|
|
|
|
namespace ConsoleApp.Menu
|
|
{
|
|
internal class ConnectionMenu : Entry
|
|
{
|
|
public ConnectionMenu()
|
|
: base("Connection",
|
|
new Entry.EntryStep("Username: ", typeof(string)),
|
|
new Entry.EntryStep("Password: ", typeof(string)))
|
|
{ }
|
|
|
|
public override IMenu? Return()
|
|
{
|
|
string username = _selectList[0].Item.Input;
|
|
string password = _selectList[1].Item.Input;
|
|
return new PlainText($"User: {username} connected with password: {password}");
|
|
}
|
|
}
|
|
}
|