Example #1
0
        public DataSourceManager()
        {
            var sources = new Dictionary<DataSourceContentType, IDataSource>();
            var airports = new AirportData.OurAirports.AirportDirectory();
            sources.Add(DataSourceContentType.Airports, airports);

            var flightPlans = new FlightPlanSource(airports);
            sources.Add(DataSourceContentType.FlightPlans, flightPlans);

            sources.Add(DataSourceContentType.Metar, new MetarSource());

            this.DataSources = sources;
        }
Example #2
0
        public DataSourceManager()
        {
            var sources  = new Dictionary <DataSourceContentType, IDataSource>();
            var airports = new AirportData.OurAirports.AirportDirectory();

            sources.Add(DataSourceContentType.Airports, airports);

            var flightPlans = new FlightPlanSource(airports);

            sources.Add(DataSourceContentType.FlightPlans, flightPlans);

            sources.Add(DataSourceContentType.Metar, new MetarSource());

            this.DataSources = sources;
        }