示例#1
0
        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;
            }
        }
示例#2
0
 public TodayEventsForm()
     : base()
 {
     InitializeComponent();
     r_GPS = new GPSFacade(gMapControlEvents);
 }