Ejemplo n.º 1
0
 void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (this.Visible && _mapUpdated)
     {
         setActiveGeocache(true);
     }
 }
Ejemplo n.º 2
0
 void Geocaches_SelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (this.Visible && _mapUpdated)
     {
         UpdateSelectedMarkers();
     }
 }
Ejemplo n.º 3
0
 void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (this.Visible && _webpageLoaded)
     {
         setActiveGeocacheInMap();
     }
 }
Ejemplo n.º 4
0
 void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (this.Visible)
     {
         UpdateView(radioButton1.Checked);
     }
 }
Ejemplo n.º 5
0
 void Geocaches_DataChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (this.Visible && _mapUpdated)
     {
         UpdateMap();
     }
 }
Ejemplo n.º 6
0
 void Geocaches_GeocacheAdded(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (PluginSettings.Instance.AutoSelectNewGeocaches)
     {
         checkGeocachesAdded();
     }
 }
Ejemplo n.º 7
0
 void Geocaches_SelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (Visible)
     {
         checkButtons();
     }
 }
Ejemplo n.º 8
0
 void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (Visible)
     {
         UpdateView();
     }
 }
Ejemplo n.º 9
0
 void Geocaches_SelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (Visible)
     {
         UpdateView(MapUpdateReason.SelectedChanged);
     }
 }
Ejemplo n.º 10
0
 void _gcCollection_SelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (!_ignoreGeocacheSelectionChanged)
     {
         UpdateList();
     }
     _ignoreGeocacheSelectionChanged = false;
 }
Ejemplo n.º 11
0
 void _gcCollection_GeocacheSelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (this.ContainsFocus)
     {
         //ignore
         _ignoreGeocacheSelectionChanged = true;
     }
 }
Ejemplo n.º 12
0
 void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (this.Visible)
     {
         StoreFormula();
         UpdateView();
     }
 }
Ejemplo n.º 13
0
 void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (Visible)
     {
         checkButtons();
         checkActiveGeocache();
     }
 }
Ejemplo n.º 14
0
 void Geocaches_DataChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (this.Visible)
     {
         _activeGeocache = null;
         clusterGeocaches(true);
         UpdateView(true);
     }
 }
Ejemplo n.º 15
0
 void Geocaches_SelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (this.Visible && radioButtonSelected.Checked)
     {
         clusterGeocaches(true);
         this.mapContainerControl1.MapCanvas.CheckMassMarkers();
         this.mapContainerControl1.MapCanvas.RepositionChildren();
     }
 }
Ejemplo n.º 16
0
 void Geocaches_DataChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (Visible)
     {
         if (e.Geocache == Core.ActiveGeocache)
         {
             UpdateView();
         }
     }
 }
Ejemplo n.º 17
0
 void Geocaches_GeocacheRemoved(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (PluginSettings.Instance.AutoSelectNewGeocaches)
     {
         if (_prevList[e.Geocache.Code] != null)
         {
             _prevList.Remove(e.Geocache.Code);
         }
     }
 }
Ejemplo n.º 18
0
 void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     if (Core.ActiveGeocache == null)
     {
         cacheListControl1.GeocacheDataGrid.SelectedItem = null;
     }
     else
     {
         if (cacheListControl1.GeocacheDataGrid.Items.Contains(Core.ActiveGeocache))
         {
             cacheListControl1.GeocacheDataGrid.SelectedItem = Core.ActiveGeocache;
             cacheListControl1.GeocacheDataGrid.ScrollIntoView(cacheListControl1.GeocacheDataGrid.SelectedItem);
         }
     }
 }
Ejemplo n.º 19
0
        void _core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
        {
            if (this.Visible)
            {
                if (_activeGeocache != _core.ActiveGeocache)
                {
                    if (_core.ActiveGeocache != null)
                    {
                        MapControl.Marker m = new MapControl.Marker();
                        if (_core.ActiveGeocache.ContainsCustomLatLon)
                        {
                            this.mapContainerControl1.MapCanvas.Center((double)_core.ActiveGeocache.CustomLat, (double)_core.ActiveGeocache.CustomLon, this.mapContainerControl1.MapCanvas.Zoom);
                            m.Latitude  = (double)_core.ActiveGeocache.CustomLat;
                            m.Longitude = (double)_core.ActiveGeocache.CustomLon;
                        }
                        else
                        {
                            this.mapContainerControl1.MapCanvas.Center(_core.ActiveGeocache.Lat, _core.ActiveGeocache.Lon, this.mapContainerControl1.MapCanvas.Zoom);
                            m.Latitude  = _core.ActiveGeocache.Lat;
                            m.Longitude = _core.ActiveGeocache.Lon;
                        }
                        m.ImagePath = Utils.ImageSupport.Instance.GetImagePath(_core, Framework.Data.ImageSize.Map, _core.ActiveGeocache.GeocacheType, _core.ActiveGeocache.ContainsCustomLatLon);

                        List <Framework.Data.Waypoint> wps       = Utils.DataAccess.GetWaypointsFromGeocache(_core.Waypoints, _core.ActiveGeocache.Code);
                        List <MapControl.Marker>       wpmarkers = new List <MapControl.Marker>();
                        foreach (Framework.Data.Waypoint wp in wps)
                        {
                            if (wp.Lat != null && wp.Lon != null)
                            {
                                MapControl.Marker wpm = new MapControl.Marker();
                                wpm.Latitude  = (double)wp.Lat;
                                wpm.Longitude = (double)wp.Lon;
                                wpm.ImagePath = Utils.ImageSupport.Instance.GetImagePath(_core, Framework.Data.ImageSize.Map, wp.WPType);
                                wpmarkers.Add(wpm);
                            }
                        }
                        this.mapContainerControl1.SetWaypointMarkers(wpmarkers);
                        this.mapContainerControl1.SetCacheMarker(m);
                    }
                    else
                    {
                        this.mapContainerControl1.SetCacheMarker(null);
                    }
                }
                UpdateView(false);
            }
        }
Ejemplo n.º 20
0
 void mapContainerControl1_GeocacheClick(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     _activeGeocache      = e.Geocache;
     _core.ActiveGeocache = e.Geocache;
 }
Ejemplo n.º 21
0
 void Geocaches_DataChanged(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     UpdateView();
 }
Ejemplo n.º 22
0
 void _gcCollection_GeocacheAdded(object sender, Framework.EventArguments.GeocacheEventArgs e)
 {
     UpdateList();
 }