public static MG_Point ToPoint(Point point, MG_MapView mapview) { MG_Point mp; if (mapview != null) { mp = mapview.Screent2Map(point); } else { mp = new MG_Point(point.X, point.Y); } return mp; }