public FlightData()
 {
     Flights         = new ObservableCollection <Flight>();
     Lookups         = new Lookups();
     User            = new User();
     InMemoryLookups = new InMemoryLookups();
 }
Exemple #2
0
        public void PopulateLookups(Lookups lookupData, InMemoryLookups inMemoryLookups)
        {
            Aircraft = lookupData.Aircraft.FirstOrDefault(x => x.id == AircraftId);
            Capacity = inMemoryLookups.Capacities.FirstOrDefault(x => x.Id == CapacityId);
            From     = lookupData.Airfields.FirstOrDefault(x => x.id == AirfieldFromId);
            To       = lookupData.Airfields.FirstOrDefault(x => x.id == AirfieldToId);

            this.Lookups = lookupData;
            Capacities   = inMemoryLookups.Capacities;
        }