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); }
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); }
public ZoneShape(Point pt) : base(pt) { TextField = new TextShape("Z", pt, this); TextField.ShowBorder = false; }