private void buttonSearch_Click(object sender, EventArgs e) { PointLatLng point = GPSFacade.GetLocationByName(textBoxCurrentLocation.Text); if (point.IsEmpty) { MessageBox.Show("Your current location was not found"); } else { r_GPS.UserLocation = point; gMapControlEvents.Position = point; gMapControlEvents.Zoom = 15; } }
public TodayEventsForm() : base() { InitializeComponent(); r_GPS = new GPSFacade(gMapControlEvents); }