Exemple #1
0
 private void btnSum_Click(object sender, EventArgs e)
 {
     int x, y, sum = 0;
     x = int.Parse(txtValue1.Text);
     y = int.Parse(txtValue2.Text);
     ServiceReference1.Service1SoapClient ws = new ServiceReference1.Service1SoapClient();
     sum = ws.Add(x, y);
     MessageBox.Show("Sum is = " + sum.ToString());
 }