private void coords_Click(object sender, EventArgs e) { CoordForm coodForm = new CoordForm(); if (coodForm.ShowDialog() == DialogResult.OK) { Double lat = coodForm.Latitude; Double lng = coodForm.Longitude; this.MoveToMapPosition(lat, lng); } }
private void coordBtn_Click(object sender, EventArgs e) { CoordForm coordForm = new CoordForm(); if (coordForm.ShowDialog() == DialogResult.OK) { this.InitControl(); } }