/// <summary>
 /// Creates Location objects and pushpins for all fire stations.
 /// </summary>
 private void CreateAppliances()
 {
     foreach (KeyValuePair <string, Point> app in Tools.ResourceControllerDB.GetAppliances("", false))
     {
         largeMap.Children.Add(BingMapsConnector.CreatePin(new Location(app.Value.Y, app.Value.X), Brushes.Blue, app.Key));
     }
 }
 /// <summary>
 /// Creates Location objects and pushpins for all open incidents.
 /// </summary>
 private void CreateIncidents()
 {
     foreach (KeyValuePair <int, Point> inc in Tools.IncidentControllerDB.GetAllOpenIncidents())
     {
         largeMap.Children.Add(BingMapsConnector.CreatePin(new Location(inc.Value.Y, inc.Value.X), Brushes.Red, inc.Key.ToString()));
     }
 }
        /// <summary>
        /// Zoom map to a location
        /// </summary>
        /// <param name="location">The location to zoom to</param>
        /// <param name="zoomLevel">The zoom level</param>
        private void zoomToLocationOnMap(double longitude, double latitude, int zoomLevel, string name = "")
        {
            //create the Bing Location object from the selected address
            Location selectedLocation = new Location(latitude, longitude);

            //set the map to the address and zoom in

            incidentMap.Center    = selectedLocation;
            incidentMap.ZoomLevel = zoomLevel;

            if (name != "")
            {
                incidentMap.Children.Add(BingMapsConnector.CreatePin(selectedLocation, Brushes.Yellow, name));
            }
        }