private void btnMap_Click(object sender, EventArgs e) { MapForm.ShowMap(txtLatitude.Text, txtLongtitude.Text, txtDetail.Text); }
public static void ShowMap(string lat, string lng, string html) { MapForm map = new MapForm(lat, lng, html); map.ShowDialog(); }