From 5d40f95829a4d874ce6c4f4c8370fc7dc2d8a33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommy=20=C3=96man?= Date: Fri, 8 Aug 2025 09:21:41 +0200 Subject: [PATCH] Lesson 6 - multiselection --- SpectreDemos/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SpectreDemos/Program.cs b/SpectreDemos/Program.cs index 0138189..9c3a26d 100644 --- a/SpectreDemos/Program.cs +++ b/SpectreDemos/Program.cs @@ -91,7 +91,9 @@ List favoriteName = AnsiConsole.Prompt( .InstructionsText( "[grey](Press [blue][/] to toggle selection, " + "[green][/] to accept)[/]") - .AddChoices(usualNames) + //.AddChoices(usualNames) + .AddChoiceGroup("Usual Names", usualNames) + .AddChoiceGroup("Family Names", familyNames) ); foreach (string name in favoriteName)