///
/// 画线
/// “mapControl1”>
/// “map”>
/// “tableName”>图层名称
/// “begDpoint”>初始点
/// “endDpoint”>终点
///“Pattoner”>线宽
/// “color”>线颜色
public static void DrawLine(MapControl mapControl1, MapInfo.Mapping.Map map,string tableName, MapInfo.Geometry.DPoint begDpoint,
MapInfo.Geometry.DPoint endDpoint, int Pattoner, System.Drawing.Color color)
{
MapInfo.Mapping.Map myMap = MapInfo.Engine.Session.Current.MapFactory[mapControl1.Map.Alias];
FeatureLayer workLayer = (MapInfo.Mapping.FeatureLayer)myMap.Layers[tableName + "层"];
MapInfo.Data.Table table = workLayer.Table;
MapInfo.Geometry.MultiCurve mc = MapInfo.Geometry.MultiCurve.CreateLine(myMap.GetDisplayCoordSys(), begDpoint, endDpoint);
MapInfo.Styles.SimpleLineStyle bl = new MapInfo.Styles.SimpleLineStyle(new MapInfo.Styles.LineWidth(2, MapInfo.Styles.LineWidthUnit.