Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 protected override void OnActivate()
 {
     dockableWindowGeoCalculator = AddIn.FromID <DockableWindowGeoCalculator.AddinImpl>(ThisAddIn.IDs.DockableWindowGeoCalculator)?.UI;
     Cursor = System.Windows.Forms.Cursors.Cross;
     base.OnActivate();
 }