dockWindow.Show(true);
// this property is what I added - the rest was generated by the template internal DNRInfoToolDockableWindow UI { get { return m_windowUI; } }
DNRInfoToolDockableWindow.AddinImpl winImp = AddIn.FromID<DNRInfoToolDockableWindow.AddinImpl>(ThisAddIn.IDs.DNRInfoToolDockableWindow); DNRInfoToolDockableWindow dnrWindow = winImp.UI;
public void updateOnMouseClick() { MessageBox.Show("Mouse Was Clicked"); }
using ESRI.ArcGIS.Desktop.AddIns; ... protected override void OnMouseDown(ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs arg) { //ArcMap.Application.CurrentTool = null; UID dockWinID = new UIDClass(); dockWinID.Value = ThisAddIn.IDs.DNRInfoToolDockableWindow; // Use GetDockableWindow directly as we want the client IDockableWindow not the internal class IDockableWindow dockWindow = ArcMap.DockableWindowManager.GetDockableWindow(dockWinID); if(!dockWindow.IsVisible()) dockWindow.Show(true); DNRInfoToolDockableWindow.AddinImpl winImp = AddIn.FromID<DNRInfoToolDockableWindow.AddinImpl>(ThisAddIn.IDs.DNRInfoToolDockableWindow); DNRInfoToolDockableWindow dnrWindow = winImp.UI; dnrWindow.updateOnMouseClick (); }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.