/// <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)
            {
                if (components != null)
                {
                    components.Dispose();
                }
                if (m_vc != null)
                {
                    m_vc.Dispose();
                }
            }
            m_vc  = null;
            m_msa = null;
        }
        public override void MakeRoot()
        {
            base.MakeRoot();

            if (m_fdoCache == null || DesignMode)
            {
                return;
            }

            MoMorphSynAnalysisUi msaUi = new MoMorphSynAnalysisUi(m_msa);

            m_rootb = VwRootBoxClass.Create();
            m_rootb.SetSite(this);
            m_rootb.DataAccess = m_fdoCache.MainCacheAccessor;
            m_vc = msaUi.Vc as MoMorphSynAnalysisUi.MsaVc;
            m_rootb.SetRootObject(m_msa.Hvo, m_vc,
                                  (int)VcFrags.kfragFullMSAInterlinearname, m_rootb.Stylesheet);
        }
Beispiel #3
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            // Must not be run more than once.
            if (IsDisposed)
            {
                return;
            }

            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
                if (m_fdoCache != null)
                {
                    m_fdoCache.DomainDataByFlid.RemoveNotification(this);
                }
            }
            m_vc  = null;
            m_msa = null;

            base.Dispose(disposing);
        }