Inheritance: ESRI.ArcGIS.Desktop.AddIns.Extension
Esempio n. 1
0
        protected override void OnUpdate()
        {
            if (!SelectionExtension.IsExtensionEnabled())
            {
                this.Enabled = false;
                return;
            }

            this.Enabled = SelectionExtension.HasSelectableLayer();
        }
        // Overrides

        protected override void OnStartup()
        {
            s_extension = this;

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

            Initialize();
        }
    // Overrides

    protected override void OnStartup()
    {
      s_extension = this;

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

      Initialize();
    }
Esempio n. 4
0
        protected override void OnClick()
        {
            IDockableWindow dockWindow = SelectionExtension.GetSelectionCountWindow();

            if (dockWindow == null)
            {
                return;
            }

            dockWindow.Show(!dockWindow.IsVisible());
        }
        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();
        }
    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();
    }
Esempio n. 7
0
 protected override void OnUpdate()
 {
     this.Enabled = SelectionExtension.IsExtensionEnabled();
 }