public PerfTable ReadFromXml(string filePath) { var doc = XDocument.Load(filePath); return(new PerfTable() { Item = LoadTable(filePath), Entry = LdgTableLoader.GetEntry(filePath, doc) }); }
/// <summary> /// Load an aircraft data from specified Xml file. /// </summary> /// /// <exception cref="Exception"></exception> public static PerfTable ReadFromXml(string filePath) { var doc = XDocument.Load(filePath); var table = LoadPerfTable(doc.Root); return(new PerfTable() { Item = table, Entry = LdgTableLoader.GetEntry(filePath, doc) }); }