Пример #1
0
        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);
        }
Пример #2
0
        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);
        }