public void SetRoot(MemoryElement root)
{
MemoryElement oldRoot = this.m_Root;
this.m_Root = root;
if (this.m_Root != null)
{
this.m_Root.ExpandChildren();
}
if (this.m_DetailView != null)
{
this.m_DetailView.SetRoot(null);
}
if ((oldRoot != null) && (this.m_Root != null))
{
this.RestoreViewState(oldRoot, this.m_Root);
}
}