Ejemplo n.º 1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.m_TabPage != null &&
             !this.m_TabPage.IsDisposed)
         {
             ITabControlHelper pTabControlHelper = this.m_TabPage.Parent as ITabControlHelper;
             if (pTabControlHelper != null)
             {
                 pTabControlHelper.TabButtonItemCollection.Remove(this.m_TabPage.pTabButtonItem as BaseItem);
             }
         }
     }
     base.Dispose(disposing);
 }
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.m_RibbonPage != null &&
             !this.m_RibbonPage.IsDisposed)
         {
             foreach (BaseItem one in this.m_RibbonPage.BaseItems)
             {
                 one.Dispose();
             }
             this.m_RibbonPage.BaseItems.Clear();
             //
             ITabControlHelper pTabControlHelper = this.m_RibbonPage.Parent as ITabControlHelper;
             if (pTabControlHelper != null)
             {
                 pTabControlHelper.TabButtonItemCollection.Remove(this.m_RibbonPage.pTabButtonItem as BaseItem);
             }
         }
     }
     base.Dispose(disposing);
 }
Ejemplo n.º 3
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         try
         {
             if (this.m_BasePanel != null &&
                 !this.m_BasePanel.IsDisposed &&
                 this.m_BasePanel.DockPanelManager != null &&
                 this.m_BasePanel.DockPanelManager.BasePanels.Contains(this.m_BasePanel))
             {
                 this.m_BasePanel.DockPanelManager.BasePanels.Remove(this.m_BasePanel);
                 //
                 ITabControlHelper pTabControlHelper = this.m_BasePanel.Parent as ITabControlHelper;
                 if (pTabControlHelper != null)
                 {
                     pTabControlHelper.TabButtonItemCollection.Remove(this.m_BasePanel.pTabButtonItem as BaseItem);
                 }
             }
         }
         catch { }
     }
     base.Dispose(disposing);
 }
 internal TabPageCollection(ITabControlHelper pTabControlHelper)
 {
     this.m_Owner = pTabControlHelper;
 }