コード例 #1
0
        static void Main(string[] args)
        {
            DiSetup.ConsoleApp();
            DiSetup.Initialize();

            initMenu();

            while (!isQuitting)
            {
                renderMenu();
                ConsoleKeyInfo choice = Console.ReadKey(true);
                if (menuEntries.Keys.Any(x => x.Equals(choice)))
                {
                    menuEntries[choice].Execute();
                }
            }
        }