Пример #1
0
 public void AddBeacon(Beacon b)
 {
     var ns = (b.Latitude > 0) ? "N" : "S";
     var ew = (b.Longitude > 0) ? "E" : "W";
     var line = string.Format(System.Globalization.CultureInfo.InvariantCulture, "{0} A {1}º{2} {3}º{4} {5:dd-MMM-yyyy HH:mm:ss} {6} {7}", b.Code, Math.Abs(b.Latitude), ns, Math.Abs(b.Longitude), ew, DateTime.Now, b.Altitude, b.Name.ToUpper());
     AddLine("W", line);
     AddLine("w", "Red Diamond,0,-1.0,16316664,248,0,39,,0.0,,-1,0");
 }
Пример #2
0
 public static FlightBeacon FromBeacon(Beacon beacon)
 {
     return new FlightBeacon() { Altitude = beacon.Altitude, BeaconId = beacon.BeaconId, Code = beacon.Code, Coords = beacon.Coords, Description = beacon.Description, Latitude = beacon.Latitude, Longitude = beacon.Longitude, Name = beacon.Name, Region = beacon.Region, Points = beacon.Points };
 }