public override void OnMouseDown(DrawArea drawArea, MouseEventArgs e)
 {
     Point p = drawArea.BackTrackMouse(new Point(e.X, e.Y));
     DrawLine o =new DrawLine(p.X, p.Y, p.X + 1, p.Y + 1, System.Drawing.Color.Lime, 10);
     o.needcircle = true;
     AddNewObject(drawArea,o );
 }
Beispiel #2
0
 public override DrawObject Clone()
 {
     DrawLine drawLine = new DrawLine();
     drawLine.StartPoint = StartPoint;
     drawLine.EndPoint = EndPoint;
     drawLine.needcircle = needcircle;
     FillDrawObjectFields(drawLine);
     return drawLine;
 }