private void BtnAdd_Click(object sender, EventArgs e) { var dialog = new AttributeToEnumMapperDialog(CallingControl); if (dialog.ShowDialog() == DialogResult.OK) { AddRow(dialog.EntityName, dialog.AttributeName, dialog.OptionSetSchemaName); } }