void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (this.Visible && _mapUpdated) { setActiveGeocache(true); } }
void Geocaches_SelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (this.Visible && _mapUpdated) { UpdateSelectedMarkers(); } }
void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (this.Visible && _webpageLoaded) { setActiveGeocacheInMap(); } }
void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (this.Visible) { UpdateView(radioButton1.Checked); } }
void Geocaches_DataChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (this.Visible && _mapUpdated) { UpdateMap(); } }
void Geocaches_GeocacheAdded(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (PluginSettings.Instance.AutoSelectNewGeocaches) { checkGeocachesAdded(); } }
void Geocaches_SelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (Visible) { checkButtons(); } }
void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (Visible) { UpdateView(); } }
void Geocaches_SelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (Visible) { UpdateView(MapUpdateReason.SelectedChanged); } }
void _gcCollection_SelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (!_ignoreGeocacheSelectionChanged) { UpdateList(); } _ignoreGeocacheSelectionChanged = false; }
void _gcCollection_GeocacheSelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (this.ContainsFocus) { //ignore _ignoreGeocacheSelectionChanged = true; } }
void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (this.Visible) { StoreFormula(); UpdateView(); } }
void core_ActiveGeocacheChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (Visible) { checkButtons(); checkActiveGeocache(); } }
void Geocaches_DataChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (this.Visible) { _activeGeocache = null; clusterGeocaches(true); UpdateView(true); } }
void Geocaches_SelectedChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (this.Visible && radioButtonSelected.Checked) { clusterGeocaches(true); this.mapContainerControl1.MapCanvas.CheckMassMarkers(); this.mapContainerControl1.MapCanvas.RepositionChildren(); } }
void Geocaches_DataChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (Visible) { if (e.Geocache == Core.ActiveGeocache) { UpdateView(); } } }
void Geocaches_GeocacheRemoved(object sender, Framework.EventArguments.GeocacheEventArgs e) { if (PluginSettings.Instance.AutoSelectNewGeocaches) { if (_prevList[e.Geocache.Code] != null) { _prevList.Remove(e.Geocache.Code); } } }
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); } } }
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); } }
void mapContainerControl1_GeocacheClick(object sender, Framework.EventArguments.GeocacheEventArgs e) { _activeGeocache = e.Geocache; _core.ActiveGeocache = e.Geocache; }
void Geocaches_DataChanged(object sender, Framework.EventArguments.GeocacheEventArgs e) { UpdateView(); }
void _gcCollection_GeocacheAdded(object sender, Framework.EventArguments.GeocacheEventArgs e) { UpdateList(); }