//网络表改变事件 void Net_CollectionChanged(object sender, GMap.NET.ObjectModel.NotifyCollectionChangedEventArgs e) { string startnode = (string)NodeBox.SelectedItem; RefreshGrid(startnode); RefreshNeiborList(startnode); RefreshNetGrid(); if (!NewNetMap.Equals(mf.NodeNetMap)) { Reload.Enabled = true; BuildRouteBtn.Enabled = true; } }
void Markers_CollectionChanged(object sender, GMap.NET.ObjectModel.NotifyCollectionChangedEventArgs e) { int i = 0; foreach (GMapMarker marker in overlay.Markers) { marker.Tag = i; string altstring = " ("; if (WayPoints[i].IsAbsolute) { altstring += WayPoints[i].Altitude + " M"; } else { altstring += WayPoints[i].AltitudeAGL + " M AGL"; } altstring += ")"; marker.ToolTipText = "Wegpunkt " + i + altstring; i++; } }
void Routes_CollectionChanged(object sender, GMap.NET.ObjectModel.NotifyCollectionChangedEventArgs e) { //textBoxrouteCount.Text = routes.Routes.Count.ToString(); }
void Markers_CollectionChanged(object sender, GMap.NET.ObjectModel.NotifyCollectionChangedEventArgs e) { //textBoxMarkerCount.Text = objects.Markers.Count.ToString(); }