示例#1
0
        //网络表改变事件
        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;
            }
        }
示例#2
0
        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++;
            }
        }
示例#3
0
 void Routes_CollectionChanged(object sender, GMap.NET.ObjectModel.NotifyCollectionChangedEventArgs e)
 {
     //textBoxrouteCount.Text = routes.Routes.Count.ToString();
 }
示例#4
0
 void Markers_CollectionChanged(object sender, GMap.NET.ObjectModel.NotifyCollectionChangedEventArgs e)
 {
     //textBoxMarkerCount.Text = objects.Markers.Count.ToString();
 }