protected override void MoveTo(HPoint p)
{
if (isPenDown)
{
if (Numbering && HPoint.LengthAbs(p, lastText)>20)
{
var tp = ToPoint(p);
g.DrawString(counter + "", SystemFonts.IconTitleFont, Brushes.Black, tp.X, tp.Y);
counter++;
lastText = p;
}
if (current == p)
{
g.DrawLine(currentGPen, ToPoint(p), ToPoint(p.Add(new HPoint(1, 1))));
}
else
{
g.DrawLine(currentGPen, ToPoint(current), ToPoint(p));
}
}
else
{
if (DebugPenUp)
{
g.DrawLine(debugPen, ToPoint(current), ToPoint(p));
}
}
base.MoveTo(p);
}