//Prompt for new program id and create it if it does not exist. private void newProgramAssociationButton_Click(object sender, EventArgs e) { NewProgramAssociationDialog dialog = new NewProgramAssociationDialog(); if (dialog.ShowDialog() == DialogResult.OK) { ProgramAssociationInfo pai = new ProgramAssociationInfo(dialog.ProgramID); if (pai.Exists) { MessageBox.Show("Specified program already exists and will not be added"); } else { pai.Create(); } refreshExtensionsButton_Click(null, null); } }