private void sendBt_Click(object sender, RoutedEventArgs e) { HMessageOptions mOptions = new HMessageOptions(); if (persistentCb.IsChecked.Value) { mOptions.Persistent = true; } else { mOptions.Persistent = false; } if (!string.IsNullOrEmpty(timeoutTbx.Text)) { mOptions.Timeout = int.Parse(timeoutTbx.Text); } if (!string.IsNullOrEmpty(relevantTbx.Text)) { mOptions.RelevanceOffset = int.Parse(relevantTbx.Text); } HMessage hMsg = client.BuildMessage(actorTbx.Text, "text", msgTbx.Text, mOptions); client.Send(hMsg, null); Debug.WriteLine(">>>Send Message<<<\n" + hMsg.ToString() + "\n"); }