public void AssignNest() { VmFlightNest nest = Engine.FlightNest; if( nest == null ) { nest = new VmFlightNest(); Engine.FlightNest = nest; } nest.Flight = Engine.Flight; nest.Note = _noteTB.Text; }
public VmFlightNest _AddFlight( int flightId, String note, String breakdownLocationCode) { int nestId = _CreateNest(VmNestType.FLIGHT); VmFlight flight = VmAirportData.Default.GetFlight(flightId); VmFlightNest nest = new VmFlightNest(); nest.Id = nestId; nest.Flight = flight; nest.Note = note; nest.BreakDownLocationCode = breakdownLocationCode; VmAirportData.Default.AirportOutputData.FlightNestFile.Append(nest); _AddNest(nest); return nest; }
public VmFlightNest ReplaceFlight( VmFlightNest flight) { VmAirportData.Default.AirportOutputData.FlightNestFile.Replace(flight); return flight; }