Example #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (m_disposed)
            {
                return;
            }

            m_disposed = true;

            if (disposing)
            {
                Contents.Dispose();
                if (TabWindowDock != null)
                {
                    TabWindowDock.Dispose();
                }
                if (TabWindowFloat != null)
                {
                    TabWindowFloat.Dispose();
                }
                if (TabWindowDocument != null)
                {
                    TabWindowDocument.Dispose();
                }
                Events.Dispose();

                if (DockManager != null)
                {
                    DockManager.RemoveContentWindow(this);
                    m_dockManager = null;
                }
            }
        }