Changed string

This commit is contained in:
glax 2023-05-19 18:10:47 +02:00
parent 3ca96cea78
commit c4949936cd

View File

@ -105,7 +105,7 @@ public static class Tranga_Cli
int tIndex = 0;
Console.WriteLine("Tasks:");
foreach(TrangaTask trangaTask in tasks)
Console.WriteLine($"{tIndex++}: {trangaTask.task} - {trangaTask.reoccurrence} - {trangaTask.publication?.sortName} - {trangaTask.connectorName}");
Console.WriteLine($"{tIndex++}: {trangaTask.task} - {trangaTask.reoccurrence} - {trangaTask.publication?.sortName} - {trangaTask.connectorName} - {trangaTask.lastExecuted}");
return tasks.Length;
}
@ -114,7 +114,7 @@ public static class Tranga_Cli
int length = PrintTasks(taskManager);
TrangaTask[] tasks = taskManager.GetAllTasks();
Console.WriteLine($"Select Task (0-{length - 1}):");
Console.WriteLine($"Select Task (0-{length}):");
string? selectedTask = Console.ReadLine();
while(selectedTask is null || selectedTask.Length < 1)