Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            MathServiceReference.MyNumbers obj = new MathServiceReference.MyNumbers();
            obj.Number1 = Convert.ToInt32(textBox1.Text);
            obj.Number2 = Convert.ToInt32(textBox2.Text);

            textBox3.Text = proxy.Subtract(obj).ToString();
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            MathServiceReference.MyNumbers o1 = new MathServiceReference.MyNumbers();
            o1.Number1 = Convert.ToInt32(textBox1.Text);
            o1.Number2 = Convert.ToInt32(textBox2.Text);

            int c = obj.Add(o1);

            textBox3.Text = c.ToString();
        }