//Message
 private void ButtonMessage_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         string message = new TextRange(RichTextBoxMessage.Document.ContentStart, RichTextBoxMessage.Document.ContentEnd).Text;
         _listener.SendMessage(_client.Id, message, false);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }