WeifenLuo.WinFormsUI.Docking.DockPane.Dispose C# (CSharp) Метод

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                // IMPORTANT: avoid nested call into this method on Mono.
                // https://github.com/dockpanelsuite/dockpanelsuite/issues/16
                if (Win32Helper.IsRunningOnMono)
                {
                    if (m_isDisposing)
                        return;

                    m_isDisposing = true;
                }

                m_dockState = DockState.Unknown;

                if (NestedPanesContainer != null)
                    NestedPanesContainer.NestedPanes.Remove(this);

                if (DockPanel != null)
                {
                    DockPanel.RemovePane(this);
                    m_dockPanel = null;
                }

                Splitter.Dispose();
                if (m_autoHidePane != null)
                    m_autoHidePane.Dispose();
            }
            base.Dispose(disposing);
        }

Usage Example

Пример #1
0
 private void RemoveFromPane(DockPane pane)
 {
     pane.RemoveContent(Content);
     SetPane(null);
     if (pane.Contents.Count == 0)
     {
         pane.Dispose();
     }
 }
All Usage Examples Of WeifenLuo.WinFormsUI.Docking.DockPane::Dispose