Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.SetBufferSize(80, 25);


            ClassPoint p1 = new ClassPoint(4, 5, '#');

            p1.Draw();


            // рисуем рамку

            HorizLine upline = new HorizLine(0, 78, 0, '+');

            upline.Drow();
            HorizLine downline = new HorizLine(0, 78, 24, '+');

            downline.Drow();



            VertLine leftline = new VertLine(0, 24, 0, '+');

            leftline.Drow();
            VertLine rightline = new VertLine(0, 24, 78, '+');

            rightline.Drow();

            Console.ReadLine();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.SetWindowSize(1, 1);
            Console.SetBufferSize(80, 25);
            Console.SetWindowSize(80, 25);

            //Рамочка
            HorizontLine upLine     = new HorizontLine(0, 78, 0, '+');
            HorizontLine downLine   = new HorizontLine(0, 78, 24, '+');
            VertLine     leftLine   = new VertLine(0, 24, 0, '+');
            VertLine     righttLine = new VertLine(0, 24, 78, '+');

            upLine.Drow();
            downLine.Drow();
            leftLine.Drow();
            righttLine.Drow();


            Point p = new Point(4, 5, '*');

            p.Draw();
        }