SIL.FieldWorks.Common.Framework.DetailControls.MultiLevelConc.ConcView.MakeRoot C# (CSharp) Méthode

MakeRoot() public méthode

Override to remove the TAB key from treatment as a normal key.
public MakeRoot ( ) : void
Résultat void
			public override void MakeRoot()
			{
				CheckDisposed();
				base.MakeRoot();

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

				IVwRootBox rootb = VwRootBoxClass.Create();
				rootb.SetSite(this);

				rootb.DataAccess = m_fdoCache.DomainDataByFlid;

				m_vc = m_info.Vc;
				if (m_vc == null)
				{
					if (m_info.DisplayAsContext)
					{
						m_vc = new ContextVc(m_info);
					}
					else
					{
						m_vc = new SummaryVc(m_info);
					}
				}

				// The root object is the one, if any, that the policy gives us.
				// If it doesn't give us one the vc will obtain a key string from the policy
				// directly. The frag argument is arbitrary. Note that we have to use a non-zero
				// HVO, even when it doesn't mean anything, to avoid triggering an Assert in the Views code.
				rootb.SetRootObject(m_info.Hvo == 0 ? 1 : m_info.Hvo, m_vc, 1, m_styleSheet);
				this.m_rootb = rootb;
			}
		}
MultiLevelConc.ConcView