private void mapControl_Loaded(object sender, RoutedEventArgs e)
        {
            globalPositionSystemForMap = new GlobalPositioningSystemForMap(mapControl, map);

            locations = new Locations(globalPositionSystemForMap, baseWebserver);

            globalPositionSystemForMap.initializeGeoCoordinateWatcher();

        }
 private void SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
 {
     if (panorama.SelectedIndex == 0)
     {
         sound.play("map");
         globalPositionSystemForMap = new GlobalPositioningSystemForMap(mapControl, map);
         globalPositionSystemForMap.initializeGeoCoordinateWatcher();
     }
     else if (panorama.SelectedIndex == 1)
     {
         globalPositionSystemForMap.removeGeoCoordinateWatcher();
         sound.play("menu");
     }
 }
 public CommentAndLocation(GlobalPositioningSystemForMap globalPositionSystemForMap, string baseWebServer)
 {
     this.globalPositionSystemForMap = globalPositionSystemForMap;
     this.baseWebServer = baseWebServer;
 }