private void edit_server_button_Click(object sender, EventArgs e) { server_list.SelectedIndexChanged -= server_changed; edit_server edit_server = new edit_server(m_parent, server_list.SelectedItem.ToString()); edit_server.ShowDialog(); server_list.SelectedIndexChanged += server_changed; }