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); }
public override void MakeRoot() { CheckDisposed(); if (m_cache == null || DesignMode) { return; } base.MakeRoot(); m_sda = new GhostDaDecorator(m_cache.DomainDataByFlid as ISilDataAccessManaged, TsStringUtils.EmptyString(m_wsToCreate), 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(khvoFake, m_vc, 1, m_styleSheet); }
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); }