示例#1
0
        public void BoxDraw()
        {
            VLine LineLeft  = new VLine(pos.X, pos.Y, pos.Y + size, this.sym);
            VLine LineRight = new VLine(pos.X + size, pos.Y, pos.Y + size, this.sym);
            HLine HLineUp   = new HLine(pos.X, pos.X + size, pos.Y, this.sym);
            HLine HLineDown = new HLine(pos.X, pos.X + size, pos.Y + size, this.sym);

            if (OpenDir != OpenSideDir.osdLeft)
            {
                LineLeft.Draw();
            }
            if (OpenDir != OpenSideDir.osdRight)
            {
                LineRight.Draw();
            }
            if (OpenDir != OpenSideDir.osdUp)
            {
                HLineUp.Draw();
            }
            if (OpenDir != OpenSideDir.osdDown)
            {
                HLineDown.Draw();
            }

            BoxTrappedObjDraw(OpenDir);
        }
示例#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();
        }
示例#3
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();
        }
示例#4
0
        // ******************** методы ********************
        private void BoxClear()
        {
            VLine LineLeft = new VLine(pos.X, pos.Y, pos.Y + size, ' ');

            LineLeft.DrawMultiple(pos.X, pos.X + size);
        }