Exemplo n.º 1
0
        private static void ComputeEquals()
        {
            string equation = Calculator.lblEquation.Text;

            Calculator.Clear();
            Calculator.txtValue.Text    = new DataTable().Compute(equation, null).ToString();
            Calculator.lblEquation.Text = string.Format("{0} =", equation);
        }
Exemplo n.º 2
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     Calculator.Clear();
 }