SIL.FieldWorks.Common.Framework.DetailControls.GhostStringSlice.GhostStringSliceView.MakeRoot C# (CSharp) Méthode

MakeRoot() public méthode

public MakeRoot ( ) : void
Résultat void
			public override void MakeRoot()
			{
				CheckDisposed();

				base.MakeRoot();

				if (DesignMode)
					return;

				// Review JohnT: why doesn't the base class do this??
				m_rootb = VwRootBoxClass.Create();
				m_rootb.SetSite(this);



				m_sda = new GhostDaDecorator(m_fdoCache.DomainDataByFlid as ISilDataAccessManaged, m_fdoCache.TsStrFactory.EmptyString(m_wsToCreate), (int)m_clidDst);

				m_rootb.DataAccess = m_sda;

				m_vc = new GhostStringSliceVc();

				// arg1 is a meaningless root HVO, since this VC only displays one dummy property and gets it from the ghostDA,
				// which ignores the HVO.
				// arg3 is a meaningless initial fragment, since this VC only displays one thing.
				m_rootb.SetRootObject(GhostStringSlice.khvoFake, m_vc, 1, m_styleSheet);
			}
		#endregion // RootSite implementation