public override Object Clone() { var result = new LineProperty(); result.InitProperty(); Copy(result); return result; }
public override void OnMouseDown(IToolDrawArea drawArea, MouseEventArgs e) { var property = new LineProperty(); property.InitProperty(); property.Start = String.Format("{0},{1}", e.X, e.Y); property.End = String.Format("{0},{1}", e.X + 1, e.Y + 1); var draw = new DrawLine(property); drawArea.AddNewDrawObject(draw); }