Example #1
0
        public void removeMeteorite(MeteoriteLib.Meteorite meteo)
        {
            MeteoVizPushpin mvp = (MeteoVizPushpin)(this.Values.OfType <MeteoVizPushpin>().Select(m => m.Meteorite.Id == meteo.Id));

            mvp.MapVizSelected -= Mvp_MapVizSelected;
            this.Remove(mvp.Id);
        }
Example #2
0
        public void addMeteorite(MeteoriteLib.Meteorite meteo)
        {
            if (meteo == null)
            {
                return;
            }
            MeteoVizPushpin mvp = new MeteoVizPushpin(meteo);

            mvp.Location        = new Location(meteo.RectLat, meteo.RectLong);
            mvp.MapVizSelected += Mvp_MapVizSelected;
            this.Add(mvp.Id, mvp);
        }