Пример #1
0
 Section CreateFlightSection()
 {
     return(new Section("Flight")
     {
         (date = new FlightDateEntryElement("Date", Flight.Date)),
         (aircraft = new AircraftEntryElement(Flight.Aircraft)),
         (departed = new AirportEntryElement("Departed", Flight.AirportDeparted)),
         (visited1 = new AirportEntryElement("Visited", Flight.AirportVisited1)),
         (visited2 = new AirportEntryElement("Visited", Flight.AirportVisited2)),
         (visited3 = new AirportEntryElement("Visited", Flight.AirportVisited3)),
         (arrived = new AirportEntryElement("Arrived", Flight.AirportArrived)),
     });
 }
 Section CreateFlightSection()
 {
     return new Section ("Flight") {
         (date = new FlightDateEntryElement ("Date", Flight.Date)),
         (aircraft = new AircraftEntryElement (Flight.Aircraft) { AutoComplete = true }),
         (departed = new AirportEntryElement ("Departed", Flight.AirportDeparted)),
         (visited1 = new AirportEntryElement ("Visited", Flight.AirportVisited1)),
         (visited2 = new AirportEntryElement ("Visited", Flight.AirportVisited2)),
         (visited3 = new AirportEntryElement ("Visited", Flight.AirportVisited3)),
         (arrived = new AirportEntryElement ("Arrived", Flight.AirportArrived)),
     };
 }