コード例 #1
0
 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 );
 }
コード例 #2
0
ファイル: DrawLine.cs プロジェクト: bqIcelove/DrawTools
 public override DrawObject Clone()
 {
     DrawLine drawLine = new DrawLine();
     drawLine.StartPoint = StartPoint;
     drawLine.EndPoint = EndPoint;
     drawLine.needcircle = needcircle;
     FillDrawObjectFields(drawLine);
     return drawLine;
 }