void OnAddArea(GraphicsLayer gLayer, IGraphics graphics, List <Point> logPntArr) { if (m_catalog.ActiveMapDoc.Display) { MapDocEditor.AddArea(gLayer, graphics, logPntArr); } if (m_catalog.ActiveLayerObj.Display) { LayerEditor.AddArea(gLayer, graphics, logPntArr); } }
void OnAddArea(GraphicsLayer gLayer, IGraphics graphics, List <Point> logPntArr) { if (catalog.ActiveMapDoc == null) { MessageBox.Show("请激活一个矢量(文档)的图层!"); return; } if (catalog.ActiveMapDoc.Display) { MapDocEditor.AddArea(gLayer, graphics, logPntArr); } if (catalog.ActiveLayerObj == null) { MessageBox.Show("请激活一个矢量图层!"); return; } if (catalog.ActiveLayerObj.Display) { LayerEditor.AddArea(gLayer, graphics, logPntArr); } }