Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        private void DivideButton_Click(object sender, EventArgs e)
        {
            string Message = aCalculator.Division(Convert.ToDouble(firstNumberTextBox.Text), Convert.ToDouble(secondNumberTextBox.Text)).ToString();

            resultTextBox.Text = Message;
        }