private void bnInsertFormula_Click(object sender, EventArgs e) { InsertFormulaForm frm = new InsertFormulaForm(); if (frm.ShowDialog(this) == DialogResult.OK) { string frmName = frm.SelectedFunction; UpdateFormulaText(frmName, -1); } }