private void BtnSendCustom_Click(object sender, EventArgs e) { try { var id = GetID(); _listener.SendCustomHeaderMessage(id, rtMessageCustom.Text, rtHeader.Text, false); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }