Lesson 6 - multiselection
This commit is contained in:
@ -91,7 +91,9 @@ List<string> favoriteName = AnsiConsole.Prompt(
|
|||||||
.InstructionsText(
|
.InstructionsText(
|
||||||
"[grey](Press [blue]<space>[/] to toggle selection, " +
|
"[grey](Press [blue]<space>[/] to toggle selection, " +
|
||||||
"[green]<enter>[/] to accept)[/]")
|
"[green]<enter>[/] to accept)[/]")
|
||||||
.AddChoices(usualNames)
|
//.AddChoices(usualNames)
|
||||||
|
.AddChoiceGroup("Usual Names", usualNames)
|
||||||
|
.AddChoiceGroup("Family Names", familyNames)
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach (string name in favoriteName)
|
foreach (string name in favoriteName)
|
||||||
|
|||||||
Reference in New Issue
Block a user