/// <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_sda.RemoveNotification(this);
            }
            m_vc  = null;
            m_fs  = null;
            m_sda = null;
        }
예제 #2
0
        public override void MakeRoot()
        {
            CheckDisposed();

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

            base.MakeRoot();

            m_rootb.DataAccess = m_cache.MainCacheAccessor;
            m_vc = new CmObjectUi.CmAnalObjectVc(m_cache);

            if (m_fs != null)
            {
                m_rootb.SetRootObject(m_fs.Hvo, m_vc, (int)VcFrags.kfragName, m_rootb.Stylesheet);
            }
        }
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            // Must not be run more than once.
            if (IsDisposed)
            {
                return;
            }

            base.Dispose(disposing);

            if (disposing)
            {
                if (components != null)
                {
                    components.Dispose();
                }
            }
            m_vc = null;
            m_fs = null;
        }
        public override void MakeRoot()
        {
            CheckDisposed();

            base.MakeRoot();

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

            m_rootb = VwRootBoxClass.Create();
            m_rootb.SetSite(this);
            m_rootb.DataAccess = m_fdoCache.DomainDataByFlid;
            m_vc = new CmObjectUi.CmAnalObjectVc(m_fdoCache);

            if (m_fs != null)
            {
                m_rootb.SetRootObject(m_fs.Hvo, m_vc, (int)VcFrags.kfragName, m_rootb.Stylesheet);
            }
        }