//добавить местоположение private void addLocationToolStripMenuItem_Click(object sender, EventArgs e) { Location_Edit frm = new Location_Edit(); DialogResult result = frm.ShowDialog(); if (result == DialogResult.OK) { LoadData(); } }
//редактировать местоположение private void editLocationToolStripMenuItem_Click(object sender, EventArgs e) { if (listBoxLocations.SelectedItem != null) { string location = listBoxLocations.SelectedItem.ToString(); Location_Edit frm = new Location_Edit(location); DialogResult result = frm.ShowDialog(); if (result == DialogResult.OK) { LoadData(); } } }