public bool ShowDialog(ApplicationConfiguration configuration) { m_configuration = configuration; HostCB.Text = "localhost"; UpdateServers(); // show the dialog. if (ShowDialog() != DialogResult.OK) { return false; } return true; }