Compare commits
No commits in common. "c6bd342e875a7b182b112c6d741bce7970e9f828" and "3fe43b6e63bff938cf7975f35361a9fececca62f" have entirely different histories.
c6bd342e87
...
3fe43b6e63
@ -46,15 +46,15 @@ public static class Setup
|
||||
switch (pressedKey)
|
||||
{
|
||||
case ConsoleKey.D1:
|
||||
Console.WriteLine("New LogLevel:");
|
||||
string[] levels = Enum.GetNames<LogLevel>();
|
||||
for(int i = 0; i < levels.Length; i++)
|
||||
Console.WriteLine($"{i}) {levels[i]}");
|
||||
int selected;
|
||||
do
|
||||
{
|
||||
Console.Clear();
|
||||
Console.WriteLine("New LogLevel:");
|
||||
for (int i = 0; i < levels.Length; i++)
|
||||
Console.WriteLine($"{i}) {levels[i]}");
|
||||
} while (!int.TryParse(Console.ReadKey().KeyChar.ToString(), out selected) || selected < 0 || selected >= levels.Length);
|
||||
while (!int.TryParse(Console.ReadKey().KeyChar.ToString(), out selected) || selected < 0 ||
|
||||
selected >= levels.Length)
|
||||
{//NYAA
|
||||
}
|
||||
Console.WriteLine();//NewLine after Input
|
||||
c.LogLevel = Enum.Parse<LogLevel>(levels[selected]);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user