private void add_server_button_Click(object sender, EventArgs e) { server_list.SelectedIndexChanged -= server_changed; add_server add_server = new add_server(m_parent, this); add_server.ShowDialog(); server_list.SelectedIndexChanged += server_changed; }