private void btn_Create_Click(object sender, EventArgs e) { using (ServiceReference1.IfuncionesClient cliente = new ServiceReference1.IfuncionesClient()) { try { { cliente.guardar(Int32.Parse(textBox1.Text), textBox2.Text, Int32.Parse(textBox3.Text), float.Parse(textBox4.Text), textBox5.Text); } listBox1.Items.Add(textBox1.Text + ' ' + textBox2.Text + ' ' + Int32.Parse(textBox3.Text) + ' ' + float.Parse(textBox4.Text) + ' ' + textBox5.Text + ' '); textBox1.Text = " "; textBox2.Text = " "; textBox3.Text = " "; textBox4.Text = " "; textBox5.Text = " "; } catch { MessageBox.Show("No hay datos para registrar"); } } }