protected override void OnClick() { // to check the state of the extension, get the extension log.Info("Retrieving a reference to the extension object to check state."); GoogleMapsEngineToolsExtensionForArcGIS ext = GoogleMapsEngineToolsExtensionForArcGIS.GetExtension(); // check to see if the extension is enabled log.Debug("Verifying extension is enabled."); if (ext.isExtensionEnabled()) { Extension.Dialogs.Settings.Preferences preferencesForm = new Extension.Dialogs.Settings.Preferences(); preferencesForm.Show(); } }
protected override void OnClick() { // to check the state of the extension, get the extension log.Info("Retrieving a reference to the extension object to check state."); GoogleMapsEngineToolsExtensionForArcGIS ext = GoogleMapsEngineToolsExtensionForArcGIS.GetExtension(); // check to see if the extension is enabled log.Debug("Verifying extension is enabled."); if (ext.isExtensionEnabled()) { Extension.Dialogs.Settings.Preferences preferencesForm = new Extension.Dialogs.Settings.Preferences(); preferencesForm.Show(); } }