Lesson 6 - multiselection

This commit is contained in:
2025-08-08 09:21:41 +02:00
parent ef4a8202ae
commit 5d40f95829

View File

@ -91,7 +91,9 @@ List<string> favoriteName = AnsiConsole.Prompt(
.InstructionsText(
"[grey](Press [blue]<space>[/] to toggle selection, " +
"[green]<enter>[/] to accept)[/]")
.AddChoices(usualNames)
//.AddChoices(usualNames)
.AddChoiceGroup("Usual Names", usualNames)
.AddChoiceGroup("Family Names", familyNames)
);
foreach (string name in favoriteName)