private void DivideButton_Click(object sender, EventArgs e) { int FirstNumber = Convert.ToInt32(firstNumberTextBox.Text); int SecondNumber = Convert.ToInt32(secondNumberTextBox.Text); int Result = calculator.Division(FirstNumber, SecondNumber); resultTextBox.Text = Convert.ToString(Result); }
private void DivideButton_Click(object sender, EventArgs e) { calculator.firstNo = Convert.ToDouble(firstNumberTextBox.Text); calculator.secoundNo = Convert.ToDouble(secondNumberTextBox.Text); calculator.Division(); resultTextBox.Text = Convert.ToString(calculator.result); }
private void DivideButton_Click(object sender, EventArgs e) { string Message = aCalculator.Division(Convert.ToDouble(firstNumberTextBox.Text), Convert.ToDouble(secondNumberTextBox.Text)).ToString(); resultTextBox.Text = Message; }