ME3Explorer.UnrealHelper.UPropertyReader.ImportDefinitionsXML C# (CSharp) Method

ImportDefinitionsXML() public method

public ImportDefinitionsXML ( string path ) : void
path string
return void
        public void ImportDefinitionsXML(string path)
        {
            TreeViewSerializer ts = new TreeViewSerializer();
            TreeView v = new TreeView();
            ts.LoadXmlFileInTreeView(v, path);
            TreeNode t = v.Nodes[0];
            TreeNode t2 = t.Nodes[0];
            TreeNode Root = t2.Nodes[0].Clone() as TreeNode;
            ImportDefinitions(Root);
        }

Usage Example

 private void PropertyManager_Load(object sender, EventArgs e)
 {
     UPR = new UPropertyReader();
     string loc = Path.GetDirectoryName(Application.ExecutablePath);
     if(File.Exists(loc + "\\exec\\DefaultProp.xml"))
         UPR.ImportDefinitionsXML(loc + "\\exec\\DefaultProp.xml");
     RefreshView();
 }
All Usage Examples Of ME3Explorer.UnrealHelper.UPropertyReader::ImportDefinitionsXML