示例#1
0
 private void divideButton_Click(object sender, EventArgs e)
 {
     Initialization();
     result             = aCalculator.Divide(firstNumber, secondNumber);
     resultTextBox.Text = result.ToString();
 }
示例#2
0
 private void divideButton_Click(object sender, EventArgs e)
 {
     aCalculator.firstNumber  = Convert.ToDouble(firstNumberTextBox.Text);
     aCalculator.secondNumber = Convert.ToDouble(secondNumberTextBox.Text);
     resultTextBox.Text       = aCalculator.Divide().ToString();
 }