Пример #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     SR2.Service2Client service2 = new SR2.Service2Client();
     service2.DoWorkCompleted += service2_DoWorkCompleted;
     service2.DoWorkAsync(Convert.ToDouble(TextBox2.Text), Convert.ToDouble(TextBox3.Text));
     //TextBox1.Text = service2.DoWork(Convert.ToDouble(TextBox2.Text), Convert.ToDouble(TextBox3.Text)).ToString();
 }
Пример #2
0
 private void Button2_Click(object sender, RoutedEventArgs e)
 {
     SR2.Service2Client service2 = new SR2.Service2Client();
     Textbox2.Text = service2.DoWork(Convert.ToDouble(Textbox2.Text)).ToString(); //to string weil die textbox einen string erwartet
 }