private void insertInputFieldToolStripMenuItem_Click(object sender, EventArgs e) { if (builder.GetFormNames().Count != 0) { InsertInputFieldDialog dlgInsertInput = new InsertInputFieldDialog(); dlgInsertInput.ExistingFormNames = builder.GetFormNames(); if (dlgInsertInput.ShowDialog() == DialogResult.OK) { builder.InsertInputField(dlgInsertInput.FieldName, dlgInsertInput.FormName, dlgInsertInput.FieldType, dlgInsertInput.FieldValue); } } else { MessageBox.Show("There are no forms inserted", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }