private void _aisReceiver_DynamicEvent(int mmsi, double lat, double lon, double sog, double cog, int heading) { lock (_tracksData) { AisTarget target = new AisTarget(mmsi); target.Update(lon, lat, sog, cog, DateTime.Now); target.Heading = heading; _tracksData.UpdateDynamicEvent(target); } }
private void _aisReceiver_StaticEvent(int mmsi, string name, int type, int length) { lock (_tracksData) { AisTarget target = new AisTarget(mmsi); target.Name = name; target.Type = type; target.Length = length; _tracksData.UpdateStaticEvent(target); } }