private void Uninitialize()
        {
            if (s_extension == null)
            {
                return;
            }

            UID editorUid = new UIDClass();

            editorUid.Value = "esriEditor.Editor";
            IEditor m_pEditor = m_pApp.FindExtensionByCLSID(editorUid) as IEditor;

            m_editorEvents = m_pEditor as IEditEvents_Event;
            IEditEvents_OnSelectionChangedEventHandler editEvents_OnSelectionChangedEventHandler = new IEditEvents_OnSelectionChangedEventHandler(this.Editor_OnSelectionChanged);

            m_editorEvents.OnSelectionChanged -= editEvents_OnSelectionChangedEventHandler;

            // Update UI
            SF10_cmbLayers selCombo = SF10_cmbLayers.GetSelectionComboBox();

            if (selCombo != null)
            {
                selCombo.ClearAll();
            }
        }
        private void Initialize()
        {
            // If the extension hasn't been started yet or it's been turned off, bail
            if (s_extension == null || this.State != ExtensionState.Enabled)
            {
                return;
            }

            m_pApp = ArcMap.Application;
            m_pDoc = ArcMap.Document;

            UID editorUid = new UIDClass();

            editorUid.Value = "esriEditor.Editor";
            IEditor m_pEditor = m_pApp.FindExtensionByCLSID(editorUid) as IEditor;

            m_editorEvents = m_pEditor as IEditEvents_Event;
            IEditEvents_OnSelectionChangedEventHandler editEvents_OnSelectionChangedEventHandler = new IEditEvents_OnSelectionChangedEventHandler(this.Editor_OnSelectionChanged);

            m_editorEvents.OnSelectionChanged += editEvents_OnSelectionChangedEventHandler;
        }
        private void Initialize()
        {
            // If the extension hasn't been started yet or it's been turned off, bail
            if (s_extension == null || this.State != ExtensionState.Enabled)
                return;

            m_pApp = ArcMap.Application;
            m_pDoc = ArcMap.Document;

            SF10_clsBase.p_tNAIPF_EssPourc_1 = new SF10_clsBase.tNAIPF_EssPourc[7];
            SF10_clsBase.p_tNAIPF_EssPourc_2 = new SF10_clsBase.tNAIPF_EssPourc[7];

            for (int i = 0; i < 7; i++)
            {
                SF10_clsBase.p_tNAIPF_EssPourc_1[i] = new SF10_clsBase.tNAIPF_EssPourc();
                SF10_clsBase.p_tNAIPF_EssPourc_2[i] = new SF10_clsBase.tNAIPF_EssPourc();
            }

            m_Parametres = SF10_clsParametres.SF10_clsParametresDefData();

            try
            {
                UID editorUid = new UIDClass();
                editorUid.Value = "esriEditor.Editor";
                IEditor m_pEditor = m_pApp.FindExtensionByCLSID(editorUid) as IEditor;

                m_editorEvents = m_pEditor as IEditEvents_Event;
                IEditEvents_OnSelectionChangedEventHandler editEvents_OnSelectionChangedEventHandler = new IEditEvents_OnSelectionChangedEventHandler(this.Editor_OnSelectionChanged);
                m_editorEvents.OnSelectionChanged += editEvents_OnSelectionChangedEventHandler;

                m_activeViewEvents = ArcMap.Document.FocusMap as IActiveViewEvents_Event;
                IActiveViewEvents_AfterDrawEventHandler activeViewEvents_AfterDrawEventHandler = new IActiveViewEvents_AfterDrawEventHandler(this.ActiveView_OnAfterDraw);
                m_activeViewEvents.AfterDraw += activeViewEvents_AfterDrawEventHandler;

                IActiveViewEvents_ViewRefreshedEventHandler activeViewEvents_ViewRefreshedEventHandler = new IActiveViewEvents_ViewRefreshedEventHandler(this.ActiveView_OnViewRefreshed);
                m_activeViewEvents.ViewRefreshed += activeViewEvents_ViewRefreshedEventHandler;

                UID uid = new UIDClass();
                uid.Value = ThisAddIn.IDs.SF10_btnHauteurMin;
                uid.SubType = 0;
                m_pApp.Document.Accelerators.Add(uid, (System.Int32)System.Windows.Forms.Keys.D1, true, false, false);

                uid = new UIDClass();
                uid.Value = ThisAddIn.IDs.SF10_btnHauteurMax;
                uid.SubType = 0;
                m_pApp.Document.Accelerators.Add(uid, (System.Int32)System.Windows.Forms.Keys.D2, true, false, false);
            }
            catch
            {
            }
        }
        private void Uninitialize()
        {
            if (s_extension == null)
                return;

            UID editorUid = new UIDClass();
            editorUid.Value = "esriEditor.Editor";
            IEditor m_pEditor = m_pApp.FindExtensionByCLSID(editorUid) as IEditor;

            m_editorEvents = m_pEditor as IEditEvents_Event;
            IEditEvents_OnSelectionChangedEventHandler editEvents_OnSelectionChangedEventHandler = new IEditEvents_OnSelectionChangedEventHandler(this.Editor_OnSelectionChanged);
            m_editorEvents.OnSelectionChanged -= editEvents_OnSelectionChangedEventHandler;

            // Update UI
            SF10_cmbLayers selCombo = SF10_cmbLayers.GetSelectionComboBox();
            if (selCombo != null)
                selCombo.ClearAll();
        }
        private void Initialize()
        {
            // If the extension hasn't been started yet or it's been turned off, bail
            if (s_extension == null || this.State != ExtensionState.Enabled)
                return;

            m_pApp = ArcMap.Application;
            m_pDoc = ArcMap.Document;

            UID editorUid = new UIDClass();
            editorUid.Value = "esriEditor.Editor";
            IEditor m_pEditor = m_pApp.FindExtensionByCLSID(editorUid) as IEditor;

            m_editorEvents = m_pEditor as IEditEvents_Event;
            IEditEvents_OnSelectionChangedEventHandler editEvents_OnSelectionChangedEventHandler = new IEditEvents_OnSelectionChangedEventHandler(this.Editor_OnSelectionChanged);
            m_editorEvents.OnSelectionChanged += editEvents_OnSelectionChangedEventHandler;
        }