public void DrawLine(object pen, float x1, float y1, float x2, float y2)
{
LineSymDef symdef = (LineSymDef) pen;
PointKind[] kinds = {PointKind.Normal, PointKind.Normal};
PointF[] points = { Geometry.TransformPoint(new PointF(x1, y1), currentTransform), Geometry.TransformPoint(new PointF(x2, y2), currentTransform) };
SymPath path = new SymPath(points, kinds);
LineSymbol symbol = new LineSymbol(symdef, path);
map.AddSymbol(symbol);
}