public override void OnMouseDown(DrawArea drawArea, MouseEventArgs e) { Point p = drawArea.BackTrackMouse(new Point(e.X, e.Y)); DrawText drawText = new DrawText(p,drawArea.LineColor,drawArea.BackColor); if (drawText.ShowPropertiesDialog()) { AddNewObject(drawArea, new DrawText(p, drawText.NowProperties)); drawArea.ActiveTool = DrawToolType.Pointer; } }
public override DrawObject Clone() { DrawText drawText = new DrawText(); drawText._font = _font; drawText.note = note; drawText.rectangle = rectangle; drawText.IsVerticalText = IsVerticalText; drawText.TextColor = TextColor; drawText.TextFont = TextFont; FillDrawObjectFields(drawText); return drawText; }