public bool loadHexViewFromFile(string fileName) { _hexView = new HexView(); if (_hexView.OpenXml(fileName) == true) { treeView.Nodes.Clear(); HexViewTreeNode hvRootNode = _hexView._doc.getRootNode(); TreeNode treeViewRootNode = new TreeNode(hvRootNode.Data.Name); for (int i = 0; i < hvRootNode.Children.Count; ++i) { HexViewTreeNode childHvNode = hvRootNode.Children[i]; TreeNode childNode = treeViewRootNode.Nodes.Add(childHvNode.Data.Name); constructTreeView(childNode, childHvNode); } treeView.Nodes.Add(treeViewRootNode); return(true); } return(false); }