コード例 #1
0
ファイル: DockContentHandler.cs プロジェクト: mryp/kkde
        /// <exclude />
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                lock (this)
                {
                    DockPanel = null;
                    if (AutoHideTab != null)
                    {
                        AutoHideTab.Dispose();
                    }
                    if (DockPaneTab != null)
                    {
                        DockPaneTab.Dispose();
                    }

                    Form.Disposed    -= new EventHandler(Form_Disposed);
                    Form.TextChanged -= new EventHandler(Form_TextChanged);
                    Events.Dispose();
                }
            }
        }
コード例 #2
0
        /// <exclude/>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (m_hiddenMdiChild != null)
                {
                    m_hiddenMdiChild.Close();
                    m_hiddenMdiChild = null;
                }

                DockPanel = null;
                if (AutoHideTab != null)
                {
                    AutoHideTab.Dispose();
                }
                if (DockPaneTab != null)
                {
                    DockPaneTab.Dispose();
                }
            }

            base.Dispose(disposing);
        }