Esempio n. 1
0
 private XElement CreateFlightplan(XElement route, FlightPlan flightPlan)
 {
     var fp = new XElement("FLIGHTPLAN",
         new XElement("OriginAirport", flightPlan.Origin),
         new XElement("DestinationAirport", flightPlan.Destination),
         route);
     return fp;
 }
Esempio n. 2
0
        private XElement CreateFlightplan(XElement route, FlightPlan flightPlan)
        {
            var fp = new XElement("FLIGHTPLAN",
                                  new XElement("OriginAirport", flightPlan.Origin),
                                  new XElement("DestinationAirport", flightPlan.Destination),
                                  route);

            return(fp);
        }
Esempio n. 3
0
        /// <summary>
        /// Creates the fp XML document in the iFMS format
        /// </summary>
        /// <param name="flightPlan">flight plan to convert</param>
        public XDocument CreateFp(FlightPlan flightPlan)
        {
            var routeWaypoints = flightPlan.Waipoints.Select(CreateRouteWaypoint);
            var route = CreateRoute(routeWaypoints);
            var fp = CreateFlightplan(route, flightPlan);

            var doc = new XDocument(fp);
            return doc;
        }
Esempio n. 4
0
        /// <summary>
        /// Creates the fp XML document in the iFMS format
        /// </summary>
        /// <param name="flightPlan">flight plan to convert</param>
        public XDocument CreateFp(FlightPlan flightPlan)
        {
            var routeWaypoints = flightPlan.Waipoints.Select(CreateRouteWaypoint);
            var route          = CreateRoute(routeWaypoints);
            var fp             = CreateFlightplan(route, flightPlan);

            var doc = new XDocument(fp);

            return(doc);
        }