예제 #1
0
        public AreaShape(Rectangle shape, int index)
            : base(shape)
        {
            TextField = new TextShape("Shape " + index, shape, this);
            Boundary  = shape;

            Opaque    = false;
            FromColor = new LeColor(Color.FromArgb(100, Color.Red));
            ToColor   = new LeColor(Color.FromArgb(100, Color.Red));

            base.ShapeMoved   += new BoundaryShape.ShapeMoveHandler(OnMoveBorder);
            base.ShapeResized += new BoundaryShape.ResizingShapeMoveHandler(ResizeBorder);
        }
예제 #2
0
        public override bool DrawMouseUp(MouseEventArgs e)
        {
            bool check = false;

            if (AreaRect.Width > LeMenu.Size && AreaRect.Height > LeMenu.Size)
            {
                check = true;
            }

            if (check == true)
            {
                Boundary  = AreaRect;
                TextField = new TextShape("Shape " + XMLShapes.Total, Boundary.Location, this);
                RegisterEvents();
            }
            else
            {
                path = null;
            }

            LeCanvas.self.Canvas.Invalidate();

            return(check);
        }
예제 #3
0
 public ZoneShape(Point pt) : base(pt)
 {
     TextField            = new TextShape("Z", pt, this);
     TextField.ShowBorder = false;
 }