/// <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)
                {
                }

                m_env       = null;
                m_vc        = null;
                m_validator = null;                 // TODO: Make m_validator disposable?
            }
예제 #2
0
            public override void MakeRoot()
            {
                CheckDisposed();

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

                // A crude way of making sure the property we want is loaded into the cache.
                m_env = m_cache.ServiceLocator.GetInstance <IPhEnvironmentRepository>().GetObject(m_hvoObj);
                m_vc  = new StringRepSliceVc();

                base.MakeRoot();

                // And maybe this too, at least by default?
                m_rootb.DataAccess = m_cache.MainCacheAccessor;

                // arg3 is a meaningless initial fragment, since this VC only displays one thing.
                // arg4 could be used to supply a stylesheet.
                m_rootb.SetRootObject(m_hvoObj, m_vc, StringRepSliceVc.Flid, null);
            }
예제 #3
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)
                {
                    if (m_vc != null)
                    {
                        m_vc.Dispose();
                    }
                }

                m_env       = null;
                m_vc        = null;
                m_validator = null;                 // TODO: Make m_validator disposable?
            }
예제 #4
0
            public override void MakeRoot()
            {
                CheckDisposed();

                base.MakeRoot();

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

                // A crude way of making sure the property we want is loaded into the cache.
                m_env = (PhEnvironment)CmObject.CreateFromDBObject(m_fdoCache, m_hvoObj, true);
                m_vc  = new StringRepSliceVc();
                // Review JohnT: why doesn't the base class do this??
                m_rootb = VwRootBoxClass.Create();
                m_rootb.SetSite(this);
                // And maybe this too, at least by default?
                m_rootb.DataAccess = m_fdoCache.MainCacheAccessor;

                // arg3 is a meaningless initial fragment, since this VC only displays one thing.
                // arg4 could be used to supply a stylesheet.
                m_rootb.SetRootObject(m_hvoObj, m_vc, StringRepSliceVc.Flid, null);
            }
			public override void MakeRoot()
			{
				CheckDisposed();

				base.MakeRoot();

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

				// A crude way of making sure the property we want is loaded into the cache.
				m_env = m_fdoCache.ServiceLocator.GetInstance<IPhEnvironmentRepository>().GetObject(m_hvoObj);
				m_vc = new StringRepSliceVc();
				// Review JohnT: why doesn't the base class do this??
				m_rootb = VwRootBoxClass.Create();
				m_rootb.SetSite(this);
				// And maybe this too, at least by default?
				m_rootb.DataAccess = m_fdoCache.MainCacheAccessor;

				// arg3 is a meaningless initial fragment, since this VC only displays one thing.
				// arg4 could be used to supply a stylesheet.
				m_rootb.SetRootObject(m_hvoObj, m_vc, StringRepSliceVc.Flid, null);
			}
			/// <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)
				{
				}

				m_env = null;
				m_vc = null;
				m_validator = null; // TODO: Make m_validator disposable?
			}
			/// <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 (m_vc != null)
						m_vc.Dispose();
				}

				m_env = null;
				m_vc = null;
				m_validator = null; // TODO: Make m_validator disposable?
			}