private void divideButton_Click(object sender, EventArgs e) { Initialization(); result = aCalculator.Divide(firstNumber, secondNumber); resultTextBox.Text = result.ToString(); }
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(); }