private void btnEq_Click(object sender, EventArgs e) { try { var exp = new Expressao(txtInput.Text); string saida; ErrorLabel = !exp.ProcessarCalc(out saida); lbResult.Text = saida; } catch (Exception ex) { ErrorLabel = true; lbResult.Text = ex.Message; } }