Esempio n. 1
0
 /// <summary>
 /// Creates a new object.
 /// </summary>
 public Configuration()
 {
     BaseStationSettings    = new BaseStationSettings();
     FlightRouteSettings    = new FlightRouteSettings();
     WebServerSettings      = new WebServerSettings();
     GoogleMapSettings      = new GoogleMapSettings();
     VersionCheckSettings   = new VersionCheckSettings();
     InternetClientSettings = new InternetClientSettings();
     AudioSettings          = new AudioSettings();
     RawDecodingSettings    = new RawDecodingSettings();
 }
 /// <summary>
 /// Creates a new object.
 /// </summary>
 public Configuration()
 {
     BaseStationSettings = new BaseStationSettings();
     FlightRouteSettings = new FlightRouteSettings();
     WebServerSettings = new WebServerSettings();
     GoogleMapSettings = new GoogleMapSettings();
     VersionCheckSettings = new VersionCheckSettings();
     InternetClientSettings = new InternetClientSettings();
     AudioSettings = new AudioSettings();
     RawDecodingSettings = new RawDecodingSettings();
 }
 public static void CheckProperties(GoogleMapSettings settings)
 {
     TestUtilities.TestProperty(settings, r => r.InitialMapLatitude, 51.47, 90.1);
     TestUtilities.TestProperty(settings, r => r.InitialMapLongitude, -0.6, 29.10);
     TestUtilities.TestProperty(settings, r => r.InitialMapType, "ROADMAP", "TERRAIN");
     TestUtilities.TestProperty(settings, r => r.InitialMapZoom, 11, 2);
     TestUtilities.TestProperty(settings, r => r.InitialRefreshSeconds, 1, 12);
     TestUtilities.TestProperty(settings, r => r.MinimumRefreshSeconds, 1, 22);
     TestUtilities.TestProperty(settings, r => r.ShortTrailLengthSeconds, 30, 600);
     TestUtilities.TestProperty(settings, r => r.InitialDistanceUnit, DistanceUnit.NauticalMiles, DistanceUnit.Kilometres);
     TestUtilities.TestProperty(settings, r => r.InitialHeightUnit, HeightUnit.Feet, HeightUnit.Metres);
     TestUtilities.TestProperty(settings, r => r.InitialSpeedUnit, SpeedUnit.Knots, SpeedUnit.MilesPerHour);
     TestUtilities.TestProperty(settings, r => r.PreferIataAirportCodes, false);
 }
Esempio n. 4
0
        /// <summary>
        /// Creates a new object.
        /// </summary>
        public Configuration()
        {
            BaseStationSettings    = new BaseStationSettings();
            FlightRouteSettings    = new FlightRouteSettings();
            WebServerSettings      = new WebServerSettings();
            GoogleMapSettings      = new GoogleMapSettings();
            VersionCheckSettings   = new VersionCheckSettings();
            InternetClientSettings = new InternetClientSettings();
            AudioSettings          = new AudioSettings();
            RawDecodingSettings    = new RawDecodingSettings();
            MonoSettings           = new MonoSettings();

            _MergedFeeds.ListChanged         += MergedFeeds_ListChanged;
            _RebroadcastSettings.ListChanged += RebroadcastSettings_ListChanged;
            _ReceiverLocations.ListChanged   += ReceiverLocations_ListChanged;
            _Receivers.ListChanged           += Receivers_ListChanged;
        }
 public void TestInitialise()
 {
     _Implementation = new GoogleMapSettings();
 }