FlowDocument document = new FlowDocument();
Paragraph paragraph = new Paragraph();
paragraph.Inlines.Add(new Bold(new Run(connetn)));
document.Blocks.Add(paragraph);
richTextBox.Document =document;