Example #1
0
        public static void PrintVerticalLine(int positionX, int positionY, int sizeY, int cross, ConsoleColor text, ConsoleColor background)
        {
            int          SizeY = positionY + sizeY;
            VerticalLine hdl   = new VerticalLine(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;
        }
Example #2
0
        public static void PrintVerticalLine(bool cansel, int positionX, int positionY, int sizeY, int cross, ConsoleColor text, ConsoleColor background)
        {
            int          SizeY = positionY + sizeY;
            VerticalLine hdl   = new VerticalLine(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;
        }
Example #3
0
        public static void PrintVerticalLine(bool cansel, int positionX, int positionY, int sizeY, int cross, ConsoleColor text, ConsoleColor background)
        {
            int SizeY = positionY + sizeY;
            VerticalLine hdl = new VerticalLine(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;
        }