private void btnAddLocation_Click(object sender, EventArgs e) { using (TeleportLocationForm locationForm = new TeleportLocationForm()) { if (locationForm.ShowDialog() == DialogResult.OK && !string.IsNullOrEmpty(locationForm.LocationName)) { helper.AddCurrentLocation(locationForm.LocationName); UpdateLocationList(); } } }