Example #1
0
 private void SubtractButton_Click(object sender, EventArgs e)
 {
     aCalculator.firstNumber  = Convert.ToDouble(firstNumberTextBox.Text);
     aCalculator.secondNumber = Convert.ToDouble(secondNumberTextBox.Text);
     resultTextBox.Text       = aCalculator.Subtract().ToString();
 }
 private void SubtractButton_Click(object sender, EventArgs e)
 {
     _calculator.firstNumber  = Convert.ToInt32(firstNumberTextBox.Text);
     _calculator.secondNumber = Convert.ToInt32(secondNumberTextBox.Text);
     resultTextBox.Text       = Convert.ToString(_calculator.Subtract());
 }