private void button2_Click(object sender, EventArgs e) { string[] most = new string[5]; using (ServiceReference1.IfuuncionesClient cliente = new ServiceReference1.IfuuncionesClient()) { most = cliente.Read(textBox1.Text); } textBox1.Text = most[0]; textBox2.Text = most[1]; textBox3.Text = most[2]; textBox4.Text = most[3]; textBox5.Text = most[4]; }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { string[] most = new string[4]; using (ServiceReference1.IfuuncionesClient cliente = new ServiceReference1.IfuuncionesClient()) { most = cliente.Read(comboBox1.Text); } textBox1.Text = most[0]; textBox2.Text = most[1]; textBox3.Text = most[2]; textBox4.Text = most[3]; textBox5.Text = most[4]; }