Exemplo n.º 1
0
        //рисование ограниченного пространства для перемещения точки
        public void DrawRegion(int x1, int y1, int x2, int y2)
        {
            this.reg_x1 = x1;
            this.reg_x2 = x2;
            this.reg_y1 = y1;
            this.reg_y2 = y2;

            HLine h_line1 = new HLine(x1, x2, y1, '+');

            h_line1.Draw();
            HLine h_line2 = new HLine(x1, x2, y2, '+');

            h_line2.Draw();

            VLine v_line1 = new VLine(x1, y1, y2, '+');

            v_line1.Draw();
            VLine v_line2 = new VLine(x2, y1, y2, '+');

            v_line2.Draw();
        }
Exemplo n.º 2
0
        //рисование ограниченного пространства для перемещения точки
        public void DrawRegion(int x1, int y1, int x2, int y2)
        {
            this.reg_x1 = x1;
            this.reg_x2 = x2;
            this.reg_y1 = y1;
            this.reg_y2 = y2;

            HLine h_line1 = new HLine(x1, x2, y1, '+');
            h_line1.Draw();
            HLine h_line2 = new HLine(x1, x2, y2, '+');
            h_line2.Draw();

            VLine v_line1 = new VLine(x1, y1, y2, '+');
            v_line1.Draw();
            VLine v_line2 = new VLine(x2, y1, y2, '+');
            v_line2.Draw();
        }