private void AddLocationIfNew(MEPModel.Location l) { bool contained = false; foreach (MEPModel.Location loc in model.Locations) { if (loc.Longitude == l.Longitude && loc.Latitude == l.Latitude) { contained = true; } } if (!contained) { model.Locations.Add(l); } }
private Microsoft.Maps.MapControl.WPF.Location ConvertToWPFLocation(MEPModel.Location l) { return(new Microsoft.Maps.MapControl.WPF.Location(l.Latitude, l.Longitude)); }