Moved "Press any key"

This commit is contained in:
glax 2023-05-20 16:15:17 +02:00
parent 73f19c3989
commit e54e83c2ae

View File

@ -76,25 +76,35 @@ public static class Tranga_Cli
{ {
case ConsoleKey.L: case ConsoleKey.L:
PrintTasks(taskManager.GetAllTasks()); PrintTasks(taskManager.GetAllTasks());
Console.WriteLine("Press any key.");
Console.ReadKey();
break; break;
case ConsoleKey.C: case ConsoleKey.C:
CreateTask(taskManager, settings); CreateTask(taskManager, settings);
Console.WriteLine("Press any key.");
Console.ReadKey();
break; break;
case ConsoleKey.D: case ConsoleKey.D:
RemoveTask (taskManager); RemoveTask (taskManager);
Console.WriteLine("Press any key.");
Console.ReadKey();
break; break;
case ConsoleKey.E: case ConsoleKey.E:
ExecuteTaskNow(taskManager); ExecuteTaskNow(taskManager);
Console.WriteLine("Press any key.");
Console.ReadKey();
break; break;
case ConsoleKey.S: case ConsoleKey.S:
SearchTasks(taskManager); SearchTasks(taskManager);
Console.WriteLine("Press any key.");
Console.ReadKey();
break; break;
case ConsoleKey.R: case ConsoleKey.R:
PrintTasks(taskManager.GetAllTasks().Where(eTask => eTask.state == TrangaTask.ExecutionState.Running).ToArray()); PrintTasks(taskManager.GetAllTasks().Where(eTask => eTask.state == TrangaTask.ExecutionState.Running).ToArray());
Console.WriteLine("Press any key.");
Console.ReadKey();
break; break;
} }
Console.WriteLine("Press any key.");
Console.ReadKey();
selection = PrintMenu(taskManager, settings.downloadLocation); selection = PrintMenu(taskManager, settings.downloadLocation);
} }