/// <summary> /// 刷新指定图层 /// </summary> /// <param name="layer">图层</param> public void Refresh(Core.Interface.IMFLayer layer) { Dosomething((Action)(delegate { axMapControl.Refresh(esriViewDrawPhase.esriViewGraphics, layer as CompositeGraphicsLayerClass, null); }), true); }
/// <summary> /// 释放该类 /// </summary> public void Dispose() { ReleaseCommond(); CommondExecutedEvent = null; layer = null; editElement = null; currTool = null; mapControl = null; }
/// <summary> /// 构造函数 /// </summary> /// <param name="_mapControl">地图控件</param> /// <param name="element">图元</param> public EditPoint(AxMapControl _mapControl, MapFrame.Core.Interface.IMFElement element) { mapControl = _mapControl; currTool = _mapControl.CurrentTool; editElement = element as IMFPoint; if (editElement != null) { layer = editElement.BelongLayer; } SetGraphicsLayer(); }