Beispiel #1
0
        public static void PrintVerticalLineDouble(int positionX, int positionY, int sizeY, int cross, ConsoleColor text, ConsoleColor background)
        {
            int SizeY = positionY + sizeY;
            VerticalLineDouble hdl = new VerticalLineDouble(0);

            Console.ForegroundColor = text;
            Console.BackgroundColor = background;

            for (int y = positionY; y < SizeY; y++)
            {
                if (y == positionY)
                {
                    Console.SetCursorPosition(positionX, y);
                    Console.Write(hdl.top);
                }

                if (y > positionY && y < SizeY - 1)
                {
                    Console.SetCursorPosition(positionX, y);
                    Console.Write(hdl.line);
                }

                if (y == SizeY - 1)
                {
                    Console.SetCursorPosition(positionX, y);
                    Console.Write(hdl.bottom);
                }
            }

            if (cross != -1)
            {
                Console.SetCursorPosition(positionX, cross);
                Console.Write(hdl.cross);
            }

            Console.ForegroundColor = ConsoleColor.White;
            Console.BackgroundColor = ConsoleColor.Black;
        }
Beispiel #2
0
        public static void PrintVerticalLineDouble(bool cansel, int positionX, int positionY, int sizeY, int cross, ConsoleColor text, ConsoleColor background)
        {
            int SizeY = positionY + sizeY;
            VerticalLineDouble hdl = new VerticalLineDouble(0);

            Console.ForegroundColor = text;
            Console.BackgroundColor = background;

            for (int y = positionY; y < SizeY; y++)
            {
                Console.SetCursorPosition(positionX, y);
                Console.Write(hdl.line);
            }

            if (cross != -1)
            {
                Console.SetCursorPosition(positionX, cross);
                Console.Write(hdl.cross);
            }

            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.BackgroundColor = ConsoleColor.Black;
        }
Beispiel #3
0
        public static void PrintVerticalLineDouble(bool cansel, int positionX, int positionY, int sizeY, int cross, ConsoleColor text, ConsoleColor background)
        {
            int SizeY = positionY + sizeY;
            VerticalLineDouble hdl = new VerticalLineDouble(0);

            Console.ForegroundColor = text;
            Console.BackgroundColor = background;

            for (int y = positionY; y < SizeY; y++)
            {
                Console.SetCursorPosition(positionX, y);
                Console.Write(hdl.line);
            }

            if (cross != -1)
            {
                Console.SetCursorPosition(positionX, cross);
                Console.Write(hdl.cross);
            }

            Console.ForegroundColor = ConsoleColor.White;
            Console.BackgroundColor = ConsoleColor.Black;
        }