Exemplo n.º 1
0
 protected void clearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CalculatorEngine.CalcReset();
     OutputDisplay.Text = "0";
 }
Exemplo n.º 2
0
        //
        // Perform the calculation.
        //

        protected void KeyEqual_Click(object sender, System.EventArgs e)
        {
            OutputDisplay.Text = CalculatorEngine.CalcEqual();
            CalculatorEngine.CalcReset();
        }
Exemplo n.º 3
0
 protected void KeyClear_Click(object sender, System.EventArgs e)
 {
     CalculatorEngine.CalcReset();
     OutputDisplay.Text = "0";
 }