private void installButton_Click(object sender, System.EventArgs e) { UpdateConfigurationFromForm(managerConfiguration); InstallProgress progress = new InstallProgress(this); DialogResult dialogResult = progress.ShowDialog(); if (dialogResult == DialogResult.OK) { databaseInstalled = true; if (firstInstall) { installButton.Visible = false; closeButton.Visible = true; } } }