Beispiel #1
0
 public OptionChoices AskUserValidInput()
 {
     do
     {
         ConsoleKeyInfo keyInfo = Console.ReadKey(true);
         if (keyInfo.IsInList(ConsoleConsts.HomeOptions))
         {
             return(keyInfo.ToOptionChoices());
         }
         else
         {
             Thread message = new Thread(() => FlashDisplayDialog("   Unrecognized option, please try again"));
             message.Start();
         }
     } while (true);
 }