private void LoadDocument() { WixNamespace = _documentManager.Document.GetWiXNameSpace(); _shortcuts = new IsWiXShortCuts(); Cursor = Cursors.WaitCursor; SortData(); tvDestination.Nodes.Clear(); //Ensure the XML file has any Directories. try { var firstDirectory = _documentManager.Document.Descendants(WixNamespace + "Directory").First(); AddDirectoryNodesToDestination(firstDirectory, null); } catch (Exception exception) { throw exception; } tvDestination.ExpandAll(); Cursor = Cursors.Default; }