コード例 #1
0
        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);
            }
        }
コード例 #2
0
 private Microsoft.Maps.MapControl.WPF.Location ConvertToWPFLocation(MEPModel.Location l)
 {
     return(new Microsoft.Maps.MapControl.WPF.Location(l.Latitude, l.Longitude));
 }