public void SetXRef(GDMTree tree, string newXRef, bool removeOldXRef) { string oldXRef = fXRef; fXRef = newXRef; if (tree != null) { tree.SetXRef(oldXRef, this, removeOldXRef); } }