void UpdateDatabase() { Envelope env = new Envelope(mapBox1.Map.Envelope.TopLeft(), mapBox1.Map.Envelope.BottomRight()); Coordinate point = MapTransforms.ReverseTransformCoordinate(pointFeature.Geometry.Coordinate); location.Latitude = point.Y; location.Longitude = point.X; location.LatitudeM = pointFeature.Geometry.Coordinate.Y; location.LongitudeM = pointFeature.Geometry.Coordinate.X; location.ViewPort.NorthEast.Lat = env.Top(); location.ViewPort.NorthEast.Long = env.Right(); location.ViewPort.SouthWest.Lat = env.Bottom(); location.ViewPort.SouthWest.Long = env.Left(); location.PixelSize = mapBox1.Map.PixelSize; location.FoundLocation = string.Empty; location.GeocodeStatus = FactLocation.Geocode.GEDCOM_USER; location.FoundLevel = -2; DatabaseHelper.UpdateGeocode(location); pointUpdated = false; dataUpdated = true; }