zoukankan      html  css  js  c++  java
  • 草图工具(Sketch Tool)的OnSketchFinished事件

    项目:基于GIS操作语义的制图系统

    需求:在草图工具的OnSketchFinshed事件中封装操作消息体

    参考:https://www.cnblogs.com/yhlx125/archive/2012/02/27/2369572.html

    1 代码

    private IEngineEditor m_EngineEditor = new EngineEditorClass();
    private IEngineEditEvents_Event m_EngineEditEvent;
    
    private void axMapControl1_OnMouseUp(object sender, IMapControlEvents2_OnMouseUpEvent e)
    {
        if (m_EngineEditor.EditState == esriEngineEditState.esriEngineStateEditing)
        {
            m_EngineEditEvent = m_EngineEditor as IEngineEditEvents_Event;
            //订阅事件
            m_EngineEditEvent.OnSketchFinished += new IEngineEditEvents_OnSketchFinishedEventHandler(m_EngineEditEvent_OnSketchFinished);
        }
    }
    
    private void m_EngineEditEvent_OnSketchFinished()
    {
        MessageBox.Show("完成草图");
    }

    2 结果

  • 相关阅读:
    LeetCode
    已知二叉树的先序遍历和中序遍历序列求后序遍历序列
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    LeetCode
    TCP协议的基本规则和在Java中的使用
    Java中UDP协议的基本原理和简单用法
    LeetCode
  • 原文地址:https://www.cnblogs.com/liuwenzhen/p/12707181.html
Copyright © 2011-2022 走看看