void currentTool_CommondExecutedEvent(object sender, Core.Model.MessageEventArgs e) { if (CommondExecutedEvent != null) { CommondExecutedEvent(sender, e); } }
/// <summary> /// 双击编辑完成 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void mapControl_OnDoubleClick(object sender, IMapControlEvents2_OnDoubleClickEvent e) { ReleaseCommond(); if (CommondExecutedEvent != null) { MapFrame.Core.Model.MessageEventArgs args = new Core.Model.MessageEventArgs() { ToolType = Core.Model.ToolTypeEnum.Edit, Data = lineElement, Describe = "编辑完成" }; CommondExecutedEvent(this, args); } }
/// <summary> /// 双击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void mapControl_OnDoubleClick(object sender, IMapControlEvents2_OnDoubleClickEvent e) { foreach (var item in markerList) { item.Dispose(); } centerMarker.Dispose(); mapControl.Map.DeleteLayer(layer); ReleaseCommond(); if (CommondExecutedEvent != null) { MapFrame.Core.Model.MessageEventArgs args = new Core.Model.MessageEventArgs() { ToolType = Core.Model.ToolTypeEnum.Edit, Data = circleElement, Describe = "编辑完成", }; CommondExecutedEvent(this, args); } }