Inheritance: ESRI.ArcGIS.Desktop.AddIns.Extension
示例#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();
    }
示例#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();
    }
示例#7
0
 protected override void OnUpdate()
 {
     this.Enabled = SelectionExtension.IsExtensionEnabled();
 }