Beispiel #1
0
 private void btnGetMessage_Click(object sender, EventArgs e)
 {
     HelloService.HelloServiceClient client = new HelloService.HelloServiceClient("NetTcpBinding_IHelloService");
     lblMessage.Text = client.sendMessage(txtEnterName.Text);
 }
Beispiel #2
0
 public Form1()
 {
     InitializeComponent();
     client = new HelloService.HelloServiceClient();
 }
Beispiel #3
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     HelloService.HelloServiceClient client = new HelloService.HelloServiceClient();
     lblResult.Text = client.GetMessage(txtName.Text);
 }
Beispiel #4
0
 public MainWindow()
 {
     InitializeComponent();
     client = new HelloService.HelloServiceClient();
 }