private void cmd_apply_Click(object sender, EventArgs e) { if (m_editor.checkSyntax(tx_formula.Text)) { m_ok = true; this.Hide(); } }