protected override IntPtr OnCreateChild() { if (this.Hook is IApplication arcMap) { m_windowUI = new DockableWindowGeoCalculator(this.Hook, new MilSpace.GeoCalculator.BusinessLogic.BusinessLogic(arcMap, new DataImportExport())); return(m_windowUI.Handle); } else { return(IntPtr.Zero); } }
protected override void OnActivate() { dockableWindowGeoCalculator = AddIn.FromID <DockableWindowGeoCalculator.AddinImpl>(ThisAddIn.IDs.DockableWindowGeoCalculator)?.UI; Cursor = System.Windows.Forms.Cursors.Cross; base.OnActivate(); }