コード例 #1
0
        internal static void Select()
        {
            int    option;
            string mainNav = NavigationBar.mainNavBar;

            do
            {
                Console.Clear();
                Console.WriteLine($">>{ mainNav }");
                MenuMain.ShowMenu();
                switch (option = ReadOption())
                {
                case 49:
                    PrintKeys();
                    break;

                case 50:
                    PrintDetail.Details();
                    break;

                case 51:
                    OptionSelectionSettings.Select();
                    break;

                case 52:
                    MenuTestKey.ShowMenu();
                    break;

                case 17:
                    Console.WriteLine("Exit to keyboard game.");
                    System.Threading.Thread.Sleep(500);
                    break;

                default:
                    Console.WriteLine("Invalid option.");
                    System.Threading.Thread.Sleep(500);
                    break;
                }
            } while (option != 17);
        }