예제 #1
0
        private static int PrintMenuItems(int item, string[] menuItems)
        {
            ConsoleModifications.TextAlign();

            for (int i = 0; i < menuItems.Length; i++)
            {
                Console.ResetColor();
                ConsoleModifications.SetCursorPosition(i, menuItems[i].Length);
                if (item == i)
                {
                    ConsoleModifications.ChangeColour();
                    Console.WriteLine(menuItems[i]);
                }
                else
                {
                    Console.WriteLine(menuItems[i]);
                }
            }
            return(item);
        }
예제 #2
0
        public static void Main(string[] args)
        {
            ConsoleModifications.Run();

            Menu.Items();
        }