示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            var x = Convert.ToInt32(txtIdentificador.Text);

            using (ServiceConsumoDatos3.Service1Client client = new ServiceConsumoDatos3.Service1Client())
            {
                var numero = client.GetObtenerSuma(x);
                int a      = Convert.ToInt32(numero.Numero1);
                int b      = Convert.ToInt32(numero.Numero2);
                int c      = Convert.ToInt32(numero.Numero3);

                int suma      = a + b + c;
                var resultado = (textBox5.Text = suma.ToString());

                //ServiceConsumoDatos4.Service1Client client = new ServiceConsumoDatos4.Service1Client();
                //textBox1.Text = client.conversionDolares(Convert.ToDouble(textBox2.Text)).ToString();
            }
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var x = Convert.ToInt32(txtIdentificador.Text);

            using (ServiceConsumoDatos3.Service1Client client = new ServiceConsumoDatos3.Service1Client())
            {
                var numero = client.GetObtenerSuma(x);
                var num1   = (textBox2.Text = numero.Numero1);
                var num2   = (textBox3.Text = numero.Numero2);
                var num3   = (textBox4.Text = numero.Numero3);

                //int a = Convert.ToInt32(numero.Numero1);
                //int b = Convert.ToInt32(numero.Numero2);
                //int c = Convert.ToInt32(numero.Numero3);

                //int suma = a + b + c;
                //var resultado = (textBox5.Text = suma.ToString());
            }
        }