Esempio n. 1
0
 /// <exception cref="InvalidUserInputException"></exception>
 public static AvgWindCalculator GetWindCalculator(this FuelPlanningModel m,
                                                   FuelPlanningControl c)
 {
     return(AvgWindCalculatorExtension.GetWindCalculator(
                m.AppOption.Instance,
                m.WindTables,
                m.AirwayNetwork.AirportList,
                c.GetFuelData(),
                c.GetZfwTon(),
                c.OrigIcao,
                c.DestIcao));
 }
Esempio n. 2
0
 public static FinderOptionModel ToIFinderOptionModel(this FuelPlanningModel m,
                                                      bool isDeparture)
 {
     return(new FinderOptionModel()
     {
         IsDepartureAirport = isDeparture,
         AppOptions = m.AppOption,
         AirportList = () => m.AirwayNetwork.AirportList,
         WptList = () => m.AirwayNetwork.WptList,
         ProcFilter = m.ProcFilter
     });
 }