// Overrides
        protected override void OnStartup()
        {
            s_extension = this;

            // Wire up events
            ArcMap.Events.NewDocument += ArcMap_NewOpenDocument;
            ArcMap.Events.OpenDocument += ArcMap_NewOpenDocument;

            //Listen for a Stop Edits Events to be fired
            //get the editor
            UID editorUid = new UID();
            editorUid.Value = "esriEditor.Editor";
            m_editor = ArcMap.Application.FindExtensionByCLSID(editorUid) as IEditor3;
            m_editEvents = m_editor as IEditEvents_Event;

            EnableEditListeners();
            _users = new List<iFormBuilderAPI.User>();
            Initialize();
        }
        protected override void OnShutdown()
        {
            Uninitialize();

            ArcMap.Events.NewDocument -= ArcMap_NewOpenDocument;
            ArcMap.Events.OpenDocument -= ArcMap_NewOpenDocument;

            m_map = null;
            s_dockWindow = null;
            s_extension = null;

            base.OnShutdown();
        }