Esempio n. 1
0
 private void ButtonSend_Click(object sender, RoutedEventArgs e)
 {
     HubProxy.Invoke("Send", UserName, TextBoxMessage.Text);
     TextBoxMessage.Text = String.Empty;
     TextBoxMessage.Focus();
 }
Esempio n. 2
0
 private void btnSendAnoymous_Click(object sender, RoutedEventArgs e)
 {
     HubProxy.Invoke("Send", TextBoxMessage.Text);
     TextBoxMessage.Text = String.Empty;
     TextBoxMessage.Focus();
 }
 public void SendMessage(string message)
 {
     _proxy.Invoke("SendMessage", message).Wait();
 }