1 /// <summary> 2 /// Implementation class of the dockable window add-in. It is responsible for 3 /// creating and disposing the user interface class of the dockable window. 4 /// </summary> 5 public class AddinImpl : ESRI.ArcGIS.Desktop.AddIns.DockableWindow 6 { 7 private DockableWindow1 m_windowUI; 8 9 // this property is what I added - the rest was generated by the template 10 internal DockableWindow1 UI 11 { 12 get { return m_windowUI; } 13 } 14 15 public AddinImpl() 16 { 17 } 18 19 protected override IntPtr OnCreateChild() 20 { 21 m_windowUI = new DockableWindow1(this.Hook); 22 return m_windowUI.Handle; 23 } 24 25 protected override void Dispose(bool disposing) 26 { 27 if (m_windowUI != null) 28 m_windowUI.Dispose(disposing); 29 30 base.Dispose(disposing); 31 } 32 }