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