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(); }
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 OnUpdate() { this.Enabled = SelectionExtension.IsExtensionEnabled(); }