Пример #1
0
        /// <summary>
        /// Displays the menu on the right-hand side of the screen.
        /// </summary>
        public void DisplaySidebarMenu()
        {
            //Variable Declarations.
            int menuColumn = 88;
            int menuRow    = GAMEBOARD_VERTICAL_LOCATION;

            //Display the menu sidbar header.
            Console.SetCursorPosition(menuColumn, menuRow);
            Console.WriteLine("     Main Menu      ");
            menuRow++;
            Console.SetCursorPosition(menuColumn, menuRow);
            Console.WriteLine("                    ");
            menuRow++;

            //Display the menu options.
            foreach (KeyValuePair <string, SidebarMenuOptions> menuOption in SBMenuOptions)
            {
                Console.SetCursorPosition(menuColumn, menuRow);
                Console.WriteLine($" {menuOption.Key} - {ConsoleUtil.ToLabelFormat(menuOption.Value.ToString())}");
                menuRow++;
            }
        }