Exemplo n.º 1
0
 public void SetRoot(int hvo)
 {
     CheckDisposed();
     if (m_hvoRoot == hvo)
     {
         return;                 // OnRecordNavigation is often called repeatedly wit the same HVO, we don't need to recompute every time.
     }
     m_hvoRoot = hvo;
     if (RootBox != null)
     {
         RootBox.SetRootObject(m_hvoRoot, m_xmlVc, 1, m_styleSheet);
     }
     // If the root box doesn't exist yet, the right root will be used in MakeRoot.
 }