Ejemplo n.º 1
0
        public static void ShowBodiContent(string[] content, int index)
        {
            var totalRows     = Constants.Ints.StarsEndRow - Constants.Ints.StarsStartRow;
            var rowDifference = totalRows / (content.Length + Constants.Ints.DefaultOne);
            var firstRow      = Constants.Ints.StarsStartRow + rowDifference;

            foreach (var rowContent in content)
            {
                if (rowContent == content[index])
                {
                    Console.BackgroundColor = ConsoleColor.DarkGray;
                    Console.ForegroundColor = ConsoleColor.White;
                }
                //else
                //{
                //    Console.BackgroundColor = ConsoleColor.Black;
                //    Console.ForegroundColor = ConsoleColor.DarkGray;
                //}

                Console.SetCursorPosition(NonCostants.MiddleView(rowContent), firstRow);
                Console.Write(rowContent);
                firstRow += rowDifference;

                Console.BackgroundColor = ConsoleColor.Black;
                Console.ForegroundColor = ConsoleColor.DarkGray;
            }
        }
Ejemplo n.º 2
0
        public static void ShowFutterAndHeader(string header)
        {
            var width = NonCostants.MiddleView(header);

            Console.SetCursorPosition(width, Constants.Ints.DefaultOne);
            Console.Write(header);

            Console.SetCursorPosition(Constants.Ints.DefaultOne, Constants.Ints.FutterRow);
            Console.Write(Constants.Strings.MenuLeft);

            width = NonCostants.MiddleView(Constants.Strings.MenuMiddle);

            Console.SetCursorPosition(width, Constants.Ints.FutterRow);
            Console.Write(Constants.Strings.MenuMiddle);

            width = Console.WindowWidth - Constants.Strings.MenuRight.Length - Constants.Ints.DefaultOne;

            Console.SetCursorPosition(width, Constants.Ints.FutterRow);
            Console.Write(Constants.Strings.MenuRight);
        }