private void SubtractButton_Click(object sender, EventArgs e) { calculator.firstNo = Convert.ToDouble(firstNumberTextBox.Text); calculator.secoundNo = Convert.ToDouble(secondNumberTextBox.Text); calculator.Subtraction(); resultTextBox.Text = Convert.ToString(calculator.result); }
private void SubtractButton_Click(object sender, EventArgs e) { int firstNumber = Convert.ToInt32(firstNumberTextBox.Text); int secondNumber = Convert.ToInt32(secondNumberTextBox.Text); int result = calculator.Subtraction(firstNumber, secondNumber); resultTextBox.Text = Convert.ToString(result); }