コード例 #1
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// -----------------------------------------------------------------------------------
        protected override void Dispose(bool disposing)
        {
            //Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************");
            // Must not be run more than once.
            if (IsDisposed)
            {
                return;
            }

            base.Dispose(disposing);

            if (disposing)
            {
                //RightMouseClickedEvent -= new FwRightMouseClickEventHandler(InterlinDocChild_RightMouseClickedEvent);
                if (m_oneAnalSandbox != null)
                {
                    if (!Controls.Contains(m_oneAnalSandbox))
                    {
                        m_oneAnalSandbox.Dispose();
                    }
                }
                if (m_vc != null)
                {
                    m_vc.Dispose();
                }
            }
            m_oneAnalSandbox    = null;
            m_vc                = null;
            m_configurationNode = null;
            m_wordform          = null;
        }
コード例 #2
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// -----------------------------------------------------------------------------------
        protected override void Dispose(bool disposing)
        {
            //Debug.WriteLineIf(!disposing, "****************** " + GetType().Name + " 'disposing' is false. ******************");
            // Must not be run more than once.
            if (IsDisposed)
            {
                return;
            }

            if (disposing)
            {
                if (m_oneAnalSandbox != null)
                {
                    m_oneAnalSandbox.SizeChanged -= HandleSandboxSizeChanged;
                }
            }

            base.Dispose(disposing);

            if (disposing)
            {
                if (m_oneAnalSandbox != null)
                {
                    m_oneAnalSandbox.Dispose();
                }
                if (m_vc != null)
                {
                    m_vc.Dispose();
                }
            }
            m_oneAnalSandbox    = null;
            m_vc                = null;
            m_configurationNode = null;
            m_wordform          = null;
            m_wfiAnalysis       = null;
        }