Exemple #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            getAnswer mdAnswer = new getAnswer(Class1.getQuotient);
            int       num1     = Int32.Parse(textBox1.Text);
            int       num2     = Int32.Parse(textBox2.Text);

            MessageBox.Show(mdAnswer(num1, num2).ToString());
        }
Exemple #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            getAnswer subtract = new getAnswer(Formm.Subtraction);

            int num1 = Int32.Parse(textBox1.Text);
            int num2 = Int32.Parse(textBox2.Text);

            MessageBox.Show(subtract(num1, num2).ToString());
        }
Exemple #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            getAnswer Add = new getAnswer(Formm.Addition);

            int num1 = Int32.Parse(textBox1.Text);
            int num2 = Int32.Parse(textBox2.Text);

            MessageBox.Show(Add(num1, num2).ToString());
        }
Exemple #4
0
        private void button3_Click(object sender, EventArgs e)
        {
            getAnswer multiply = new getAnswer(Formm.Multiplication);

            int num1 = Int32.Parse(textBox1.Text);
            int num2 = Int32.Parse(textBox2.Text);

            MessageBox.Show(multiply(num1, num2).ToString());
        }
Exemple #5
0
        private void button4_Click(object sender, EventArgs e)
        {
            getAnswer divide = new getAnswer(Formm.Division);

            int num1 = Int32.Parse(textBox1.Text);
            int num2 = Int32.Parse(textBox2.Text);

            MessageBox.Show(divide(num1, num2).ToString());
        }
Exemple #6
0
 void Awake()
 {
     checkAnswer = this;
 }