コード例 #1
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     wsSomar.ServiceSomarClient _client = new wsSomar.ServiceSomarClient();
     wsSomar.OperadorNinja _ninja = new wsSomar.OperadorNinja { Multiplicador = 2 };
     _client.GetSomarAtrCompleted += new EventHandler<wsSomar.GetSomarAtrCompletedEventArgs>(_client_GetSomarAtrCompleted);
     _client.GetSomarAtrAsync(int.Parse(txtValor1.Text), int.Parse(txtValor2.Text), _ninja);
 }
コード例 #2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     wsSomar.ServiceSomarClient _client = new wsSomar.ServiceSomarClient();
     _client.GetSomarCompleted += _client_GetSomarCompleted;
     _client.GetSomarAsync(int.Parse(txtValor1.Text), int.Parse(txtValor2.Text));
 }