コード例 #1
0
        public PerfTable ReadFromXml(string filePath)
        {
            var doc = XDocument.Load(filePath);

            return(new PerfTable()
            {
                Item = LoadTable(filePath),
                Entry = LdgTableLoader.GetEntry(filePath, doc)
            });
        }
コード例 #2
0
        /// <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)
            });
        }