Ejemplo n.º 1
0
        public PFigure(PFigure pFigure)
        {
            //ContextMenuStrip = new CtxMenu(xCommand);

            Location   = pFigure.Location;
            Size       = pFigure.Size;
            _color     = pFigure._color;
            _lineWidth = pFigure._lineWidth;
            _type      = pFigure._type;

            Paint += PFigure_Paint;
            Click += PFigure_Click;
        }
Ejemplo n.º 2
0
        public PFigure(int x, int y, int w, int h, XData xData, IXCommand xCommand)
        {
            //ContextMenuStrip = new CtxMenu(xCommand);

            Location   = new Point(x, y);
            Size       = new Size(w, h);
            _color     = xData.color;
            _lineWidth = xData.lineWidth;
            _type      = xData.type;

            Paint += PFigure_Paint;
            Click += PFigure_Click;
        }