//# __________ PROTOCOL :: PRIVATE __________ #//
 public void AssignNest()
 {
     VmFlightDestinationNest nest = Engine.FlightDestinationNest;
     if( nest == null )
     {
         nest = new VmFlightDestinationNest();
         Engine.FlightDestinationNest = nest;
     }
     nest.Flight = Engine.Flight;
     nest.DestinationAirportCode = (String)_nestAirportCodeCB.SelectedItem;
     nest.Note = _noteTB.Text;
 }
示例#2
0
        public VmFlightDestinationNest _AddFlightDestination(
            int flightId,
            String airportCode,
            String note,
            String breakdownLocationCode)
        {
            int nestId = _CreateNest(VmNestType.FLIGHT_DESTINATION);

            VmFlight flight = VmAirportData.Default.GetFlight(flightId);

            VmFlightDestinationNest nest = new VmFlightDestinationNest();
            nest.Id                     = nestId;
            nest.Flight                 = flight;;
            nest.DestinationAirportCode = airportCode;
            nest.Note                   = note;
            nest.BreakDownLocationCode  = breakdownLocationCode;
            VmAirportData.Default.AirportOutputData.FlightDestinationNestFile.Append(nest);
            _AddNest(nest);
            return nest;
        }
示例#3
0
 public VmFlightDestinationNest ReplaceFlightDestination( VmFlightDestinationNest flightDestination)
 {
     VmAirportData.Default.AirportOutputData.FlightDestinationNestFile.Replace(flightDestination);
     return flightDestination;
 }