Like this:
hile (true)
{
switch (input)
{
case "timePlanner":
botAction = new TimePlanner();
botAction.ActionName();
break;
case "loginDetails":
botAction = new LoginDetails();
botAction.ActionName();
break;
default:
break;
}
break;
}
Console.ReadKey();
}
I have it now like this:
while (true)
{
string input = Console.ReadLine();
if (input.ToLower() == "exit")
{
break;
}
switch (input)
{
case "timePlanner":
botAction = new TimePlanner();
botAction.ActionName();
break;
case "loginDetails":
botAction = new LoginDetails();
botAction.ActionName();
continue;
case "Q":
break;
default:
break;
}
break;
}
Console.ReadKey();
}
but the problem is that I only can type one option